start_previewing_theme хук-событиеWP 3.4.0

Fires once the Customizer theme preview has started.

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

add_action( 'start_previewing_theme', 'wp_kama_start_previewing_theme_action' );

/**
 * Function for `start_previewing_theme` action-hook.
 * 
 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
 *
 * @return void
 */
function wp_kama_start_previewing_theme_action( $manager ){

	// action...
}
$manager(WP_Customize_Manager)
WP_Customize_Manager instance.

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

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

Где вызывается хук

WP_Customize_Manager::start_previewing_theme()
start_previewing_theme
wp-includes/class-wp-customize-manager.php 697
do_action( 'start_previewing_theme', $this );

Где используется хук в WordPress

wp-includes/default-filters.php 350
add_action( 'start_previewing_theme', array( 'WP_Theme_JSON_Resolver', 'clean_cached_data' ) );