WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Customize_Manager::get_nonces() WP 4.5.0

Get nonces for the Customizer.

Это метод класса: WP_Customize_Manager

Хуки из метода
Возвращает

Массив. Nonces.

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

$WP_Customize_Manager = new WP_Customize_Manager();
$var = $WP_Customize_Manager->get_nonces();

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

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

Код WP Customize Manager::get nonces: wp-includes/class-wp-customize-manager.php WP 5.3.2

<?php
public function get_nonces() {
	$nonces = array(
		'save'                     => wp_create_nonce( 'save-customize_' . $this->get_stylesheet() ),
		'preview'                  => wp_create_nonce( 'preview-customize_' . $this->get_stylesheet() ),
		'switch_themes'            => wp_create_nonce( 'switch_themes' ),
		'dismiss_autosave_or_lock' => wp_create_nonce( 'customize_dismiss_autosave_or_lock' ),
		'override_lock'            => wp_create_nonce( 'customize_override_changeset_lock' ),
		'trash'                    => wp_create_nonce( 'trash_customize_changeset' ),
	);

	/**
	 * Filters nonces for Customizer.
	 *
	 * @since 4.2.0
	 *
	 * @param string[]             $nonces Array of refreshed nonces for save and
	 *                                     preview actions.
	 * @param WP_Customize_Manager $this   WP_Customize_Manager instance.
	 */
	$nonces = apply_filters( 'customize_refresh_nonces', $nonces, $this );

	return $nonces;
}