Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_create_nonce() | Creates a cryptographic token tied to a specific action, user, user session, and window of time. |
Ajax handler to renew the REST API nonce.
File: wp-admin/includes/ajax-actions.php
function wp_ajax_rest_nonce() { exit( wp_create_nonce( 'wp_rest' ) ); }
Version | Description |
---|---|
5.3.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_ajax_rest_nonce