customize_update_{$this->type} WordPress Action Hook
The customize_update_{$this->type} hook is called after a Customizer setting has been saved. This hook gives you a chance to modify the saved value before it is sent to the database. The $setting object contains the following properties: - id: The setting ID - value: The setting value - transport: The setting transport type
do_action( "customize_update_{$this->type}", mixed $value , WP_Customize_Setting $setting ) #
Fires when the WP_Customize_Setting::update() 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 type of setting.
Parameters
- $value
(mixed)Value of the setting.
- $setting
(WP_Customize_Setting)WP_Customize_Setting instance.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |