customize_preview_{$this->type} WordPress Action Hook
The customize_preview_{$this->type} hook allows you to customize the preview of your {$this->type}s. This hook is called when the {$this->type}s are being previewed in the Customizer.
do_action( "customize_preview_{$this->type}", WP_Customize_Setting $setting ) #
Fires when the WP_Customize_Setting::preview() method is called for settings not handled as theme_mods or options.
Description
The dynamic portion of the hook name, $this->type
, refers to the setting type.
Parameters
- $setting
(WP_Customize_Setting)WP_Customize_Setting instance.
Source
Changelog
Version | Description |
---|---|
4.1.0 | Introduced. |