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' ) );
}

Changelog

Version Description
5.3.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_ajax_rest_nonce