customize_preview_{$this->id} WordPress Action Hook
The customize_preview_{$this->id} hook is used to render the preview for a specific setting. This hook is fired once the setting is saved, and allows you to override the default behavior for rendering the setting preview.
do_action( "customize_preview_{$this->id}", 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->id
, refers to the setting ID.
Parameters
- $setting
(WP_Customize_Setting)WP_Customize_Setting instance.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |