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.
Использование
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.
Список изменений
С версии 4.6.0 | Введена. |
Где вызывается хук
customize_save_validation_before
wp-includes/class-wp-customize-manager.php 2779
do_action( 'customize_save_validation_before', $this );