start_previewing_theme
Action HookDescription
Fires once the Customizer theme preview has started.Hook Information
File Location |
wp-includes/class-wp-customize-manager.php
View on GitHub
|
Hook Type | Action |
Line Number | 708 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Manager
|
$manager
|
WP_Customize_Manager instance. |
Usage Examples
Basic Usage
<?php
// Hook into start_previewing_theme
add_action('start_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:708
- How this hook is used in WordPress core
<?php
703 *
704 * @since 3.4.0
705 *
706 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
707 */
708 do_action( 'start_previewing_theme', $this );
709 }
710
711 /**
712 * Stops previewing the selected theme.
713 *
PHP Documentation
<?php
/**
* Fires once the Customizer theme preview has started.
*
* @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.