start_previewing_theme action-hookWP 3.4.0

Fires once the Customizer theme preview has started.

Usage

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.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

wp-includes/default-filters.php 359
add_action( 'start_previewing_theme', 'wp_clean_theme_json_cache' );