WP_Customize_Manager::refresh_nonces()publicWP 4.2.0

Refreshes nonces for the current preview.

Метод класса: WP_Customize_Manager{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->refresh_nonces();

Список изменений

С версии 4.2.0 Введена.

Код WP_Customize_Manager::refresh_nonces() WP 6.5.2

public function refresh_nonces() {
	if ( ! $this->is_preview() ) {
		wp_send_json_error( 'not_preview' );
	}

	wp_send_json_success( $this->get_nonces() );
}