wpcf7_validate_(tag_type) хук-фильтрCF7 1.0

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

add_filter( 'wpcf7_validate_(tag_type)', 'wp_kama_wpcf7_validate_tag_type_filter', 10, 3 );

/**
 * Function for `wpcf7_validate_(tag_type)` filter-hook.
 * 
 * @param  $result 
 * @param  $tag    
 * @param  $array  
 *
 * @return 
 */
function wp_kama_wpcf7_validate_tag_type_filter( $result, $tag, $array ){

	// filter...
	return $result;
}
$result
-
$tag
-
$array
-

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

WPCF7_Submission::unship_uploaded_files()
wpcf7_validate_(tag_type)
contact-form-7/includes/submission.php 913-919
$result = apply_filters(
	"wpcf7_validate_{$tag->type}",
	$result, $tag,
	array(
		'uploaded_files' => $new_files,
	)
);

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

contact-form-7/modules/acceptance.php 111
add_filter( 'wpcf7_validate_acceptance',
contact-form-7/modules/quiz.php 96
add_filter( 'wpcf7_validate_quiz', 'wpcf7_quiz_validation_filter', 10, 2 );
contact-form-7/modules/really-simple-captcha.php 161
add_filter( 'wpcf7_validate_captchar',