customize_save_validation_before
Fires before save validation happens.
Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters at this point to catch any settings registered after customize_register. The dynamic portion of the hook name, $this->ID refers to the setting ID.
Usage
add_action( 'customize_save_validation_before', 'wp_kama_customize_save_validation_before_action' );
/**
* Function for `customize_save_validation_before` action-hook.
*
* @param WP_Customize_Manager $manager WP_Customize_Manager instance.
*
* @return void
*/
function wp_kama_customize_save_validation_before_action( $manager ){
// action...
}
- $manager(WP_Customize_Manager)
- WP_Customize_Manager instance.
Changelog
| Since 4.6.0 | Introduced. |
Where the hook is called
customize_save_validation_before
wp-includes/class-wp-customize-manager.php 2780
do_action( 'customize_save_validation_before', $this );