Yoast\WP\SEO\Bulk_Editor\Infrastructure\Nonces
Nonce_Repository::get_rest_nonce
Creates the nonce for a WP REST request.
Метод класса: Nonce_Repository{}
Хуков нет.
Возвращает
string.
Использование
$Nonce_Repository = new Nonce_Repository(); $Nonce_Repository->get_rest_nonce(): string;
Код Nonce_Repository::get_rest_nonce() Nonce Repository::get rest nonce Yoast 28.9
public function get_rest_nonce(): string {
return \wp_create_nonce( 'wp_rest' );
}