acf/validate_save_post хук-событиеACF 1.0

action

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

add_action( 'acf/validate_save_post', 'wp_kama_acf_validate_save_post_action' );

/**
 * Function for `acf/validate_save_post` action-hook.
 * 
 * @return void
 */
function wp_kama_acf_validate_save_post_action(){

	// action...
}

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

acf_validate_save_post()
acf/validate_save_post
acf/includes/validation.php 273
do_action( 'acf/validate_save_post' );

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

acf/includes/forms/form-front.php 66
add_action( 'acf/validate_save_post', array( $this, 'validate_save_post' ), 1 );
acf/includes/forms/form-gutenberg.php 29
add_action( 'acf/validate_save_post', array( $this, 'acf_validate_save_post' ), 999 );
acf/includes/forms/form-nav-menu.php 29
add_action( 'acf/validate_save_post', array( $this, 'acf_validate_save_post' ), 5 );
acf/includes/forms/form-widget.php 41
add_action( 'acf/validate_save_post', array( $this, 'acf_validate_save_post' ), 5 );
acf/includes/validation.php 33
add_action( 'acf/validate_save_post', array( $this, 'acf_validate_save_post' ), 5 );