customize_save_(id_base)
Fires when the WP_Customize_Setting::save() method is called.
The dynamic portion of the hook name, $id_base refers to the base slug of the setting name.
Использование
add_action( 'customize_save_(id_base)', 'wp_kama_customize_save_id_base_action' ); /** * Function for `customize_save_(id_base)` action-hook. * * @param WP_Customize_Setting $setting WP_Customize_Setting instance. * * @return void */ function wp_kama_customize_save_id_base_action( $setting ){ // action... }
- $setting(WP_Customize_Setting)
- WP_Customize_Setting instance.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
customize_save_(id_base)
wp-includes/class-wp-customize-setting.php 539
do_action( "customize_save_{$id_base}", $this );
Где используется хук в WordPress
wp-admin/includes/class-custom-image-header.php 64
add_action( 'customize_save_after', array( $this, 'customize_set_last_used' ) );
wp-includes/class-wp-customize-nav-menus.php 53
add_action( 'customize_save_nav_menus_created_posts', array( $this, 'save_nav_menus_created_posts' ) );
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 773
add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) );
wp-includes/customize/class-wp-customize-nav-menu-setting.php 492
add_filter( 'customize_save_response', array( $this, 'amend_customize_save_response' ) );