WordPress at a glance
filter is not described

customize_save_response filter-hook . WP 4.2.0

Filters response data for a successful customize_save Ajax request.

This filter does not apply if there was a nonce or authentication failure.


add_filter( 'customize_save_response', 'filter_function_name_9251', 10, 2 );
function filter_function_name_9251( $response, $this ){
	// filter...

	return $response;
Additional information passed back to the 'saved' event on wp.customize.
WP_Customize_Manager instance.

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

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

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

wp-includes/class-wp-customize-manager.php 2595
$response = apply_filters( 'customize_save_response', $response, $this );

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

wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 765
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' ) );