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)', 'action_function_name_1882', 10, 2 ); function action_function_name_1882( $value, $this ){ // action... }
- $value(смешанный)
- Value of the setting.
- $this(WP_Customize_Setting)
- WP_Customize_Setting instance.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
customize_update_(type)
wp-includes/class-wp-customize-setting.php 702
do_action( "customize_update_{$this->type}", $value, $this );