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.
Usage
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.
Changelog
| Since 3.4.0 | Introduced. |
Where the hook is called
customize_save_(id_base)
wp-includes/class-wp-customize-setting.php 544
do_action( "customize_save_{$id_base}", $this );
Where the hook is used in 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 782
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' ) );