customize_save_validation_before хук-событиеWP 4.6.0

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 Введена.

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

WP_Customize_Manager::save_changeset_post()
customize_save_validation_before
wp-includes/class-wp-customize-manager.php 2774
do_action( 'customize_save_validation_before', $this );

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

Использование не найдено.