stop_previewing_theme
Action HookDescription
Fires once the Customizer theme preview has stopped.Hook Information
File Location |
wp-includes/class-wp-customize-manager.php
View on GitHub
|
Hook Type | Action |
Line Number | 746 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Manager
|
$manager
|
WP_Customize_Manager instance. |
Usage Examples
Basic Usage
<?php
// Hook into stop_previewing_theme
add_action('stop_previewing_theme', 'my_custom_function', 10, 1);
function my_custom_function($manager) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-manager.php:746
- How this hook is used in WordPress core
<?php
741 *
742 * @since 3.4.0
743 *
744 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
745 */
746 do_action( 'stop_previewing_theme', $this );
747 }
748
749 /**
750 * Gets whether settings are or will be previewed.
751 *
PHP Documentation
<?php
/**
* Fires once the Customizer theme preview has stopped.
*
* @since 3.4.0
*
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-customize-manager.php
Related Hooks
Related hooks will be displayed here in future updates.