wp_ajax_rest_nonce()WP 5.3.0

Handles renewing the REST API nonce via AJAX.

No Hooks.

Return

null. Nothing (null).

Usage

wp_ajax_rest_nonce();

Changelog

Since 5.3.0 Introduced.

wp_ajax_rest_nonce() code WP 6.4.3

function wp_ajax_rest_nonce() {
	exit( wp_create_nonce( 'wp_rest' ) );
}