Handles renewing the REST API nonce via AJAX.
Source
function wp_ajax_rest_nonce() {
exit( wp_create_nonce( 'wp_rest' ) );
}
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |
CARVIEW |
Handles renewing the REST API nonce via AJAX.
function wp_ajax_rest_nonce() {
exit( wp_create_nonce( 'wp_rest' ) );
}
Uses | Description |
---|---|
wp_create_nonce()wp-includes/pluggable.php | Creates a cryptographic token tied to a specific action, user, user session, and window of time. |
Version | Description |
---|---|
5.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.