W3cubDocs

/WordPress

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

$settingWP_Customize_Setting

Source

do_action( "customize_preview_{$this->type}", $this );

Changelog

Version Description
4.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/customize_preview_this-type