customize_preview_(type) action-hook . WP 4.1.0
Fires when the WP_Customize_Setting::preview() method is called for settings not handled as theme_mods or options.
The dynamic portion of the hook name, $this->type, refers to the setting type.
Usage
add_action( 'customize_preview_(type)', 'action_function_name_7519' ); function action_function_name_7519( $this ){ // action... }
- $this(WP_Customize_Setting)
- WP_Customize_Setting instance.
Changelog
Since 4.1.0 | Introduced. |
Where the hook is called
customize_preview_(type)
wp-includes/class-wp-customize-setting.php 411
do_action( "customize_preview_{$this->type}", $this );
Where in WP core the hook is used WordPress
wp-includes/class-wp-customize-setting.php 66
add_action( 'customize_preview_init', array( $this, 'customize_preview_init' ) );
wp-includes/class-wp-customize-setting.php 67
add_action( 'customize_preview_init', array( $this, 'make_auto_draft_status_previewable' ) );
wp-includes/class-wp-customize-setting.php 119
add_action( 'customize_preview_init', array( $this, 'customize_preview_init' ) );
wp-includes/class-wp-customize-setting.php 128
add_action( 'customize_preview_init', array( $this, 'selective_refresh_init' ) );
wp-includes/class-wp-customize-setting.php 67
add_action( 'customize_preview_init', array( $this, 'init_preview' ) );