customize_update_(type) хук-событиеWP 3.4.0

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.


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 of the setting.
WP_Customize_Setting instance.

Список изменений

С версии 3.4.0 Введена.

Где вызывается хук

wp-includes/class-wp-customize-setting.php 704
do_action( "customize_update_{$this->type}", $value, $this );

Где используется хук в WordPress

Использование не найдено.