customize_update_(type)
Fires when the WP_Customize_Setting::update() method is called for settings not handled as theme_mods or options.
The dynamic portion of the hook name, $this->type, refers to the type of setting.
Usage
add_action( 'customize_update_(type)', 'wp_kama_customize_update_type_action', 10, 2 ); /** * Function for `customize_update_(type)` action-hook. * * @param mixed $value Value of the setting. * @param WP_Customize_Setting $setting WP_Customize_Setting instance. * * @return void */ function wp_kama_customize_update_type_action( $value, $setting ){ // action... }
- $value(mixed)
- Value of the setting.
- $setting(WP_Customize_Setting)
- WP_Customize_Setting instance.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
customize_update_(type)
wp-includes/class-wp-customize-setting.php 704
do_action( "customize_update_{$this->type}", $value, $this );