customize_save
Action HookDescription
Fires once the theme has switched in the Customizer, but before settings have been saved.Hook Information
File Location |
wp-includes/class-wp-customize-manager.php
View on GitHub
|
Hook Type | Action |
Line Number | 3553 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Manager
|
$manager
|
WP_Customize_Manager instance. |
Usage Examples
Basic Usage
<?php
// Hook into customize_save
add_action('customize_save', 'my_custom_function', 10, 1);
function my_custom_function($manager) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-manager.php:3553
- How this hook is used in WordPress core
<?php
3548 *
3549 * @since 3.4.0
3550 *
3551 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
3552 */
3553 do_action( 'customize_save', $this );
3554
3555 /*
3556 * Ensure that all settings will allow themselves to be saved. Note that
3557 * this is safe because the setting would have checked the capability
3558 * when the setting value was written into the changeset. So this is why
PHP Documentation
<?php
/**
* Fires once the theme has switched in the Customizer, but before settings
* have been saved.
*
* @since 3.4.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.