wp_ajax_rest_nonce()

In this article

Handles renewing the REST API nonce via AJAX.

Source

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

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.