Action hook 'customize_save_after'

in WP Core File wp-includes/class-wp-customize-manager.php at line 3606

View Source

customize_save_after

Action Hook
Description
Fires after Customize settings have been saved.

Hook Information

File Location wp-includes/class-wp-customize-manager.php View on GitHub
Hook Type Action
Line Number 3606

Hook Parameters

Type Name Description
WP_Customize_Manager $manager WP_Customize_Manager instance.

Usage Examples

Basic Usage
<?php
// Hook into customize_save_after
add_action('customize_save_after', 'my_custom_function', 10, 1);

function my_custom_function($manager) {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-customize-manager.php:3606 - How this hook is used in WordPress core
<?php
3601  		 *
3602  		 * @since 3.6.0
3603  		 *
3604  		 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
3605  		 */
3606  		do_action( 'customize_save_after', $this );
3607  
3608  		// Restore original capabilities.
3609  		foreach ( $original_setting_capabilities as $setting_id => $capability ) {
3610  			$setting = $this->get_setting( $setting_id );
3611  			if ( $setting ) {

PHP Documentation

<?php
/**
		 * Fires after Customize settings have been saved.
		 *
		 * @since 3.6.0
		 *
		 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/class-wp-customize-manager.php
Related Hooks

Related hooks will be displayed here in future updates.