stop_previewing_theme
Fires once the Customizer theme preview has stopped.
Использование
add_action( 'stop_previewing_theme', 'wp_kama_stop_previewing_theme_action' ); /** * Function for `stop_previewing_theme` action-hook. * * @param WP_Customize_Manager $manager WP_Customize_Manager instance. * * @return void */ function wp_kama_stop_previewing_theme_action( $manager ){ // action... }
- $manager(WP_Customize_Manager)
- WP_Customize_Manager instance.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
stop_previewing_theme
wp-includes/class-wp-customize-manager.php 746
do_action( 'stop_previewing_theme', $this );