wp_ajax_rest_nonce() WordPress Function
The wp_ajax_rest_nonce() function is used to create a nonce for a given REST action. This function is only used for RESTful requests made with the WP REST API.
wp_ajax_rest_nonce() #
Ajax handler to renew the REST API nonce.
Source
File: wp-admin/includes/ajax-actions.php
function wp_ajax_rest_nonce() { exit( wp_create_nonce( 'wp_rest' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |