wpcf7_messages хук-фильтрCF7 1.0

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

add_filter( 'wpcf7_messages', 'wp_kama_wpcf7_messages_filter' );

/**
 * Function for `wpcf7_messages` filter-hook.
 * 
 * @param  $messages 
 *
 * @return 
 */
function wp_kama_wpcf7_messages_filter( $messages ){

	// filter...
	return $messages;
}
$messages
-

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

wpcf7_messages()
wpcf7_messages
contact-form-7/includes/contact-form-template.php 219
return apply_filters( 'wpcf7_messages', $messages );

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

contact-form-7/modules/date.php 152
add_filter( 'wpcf7_messages', 'wpcf7_date_messages', 10, 1 );
contact-form-7/modules/number.php 171
add_filter( 'wpcf7_messages', 'wpcf7_number_messages', 10, 1 );
contact-form-7/modules/quiz.php 193
add_filter( 'wpcf7_messages', 'wpcf7_quiz_messages', 10, 1 );
contact-form-7/modules/really-simple-captcha.php 231
add_filter( 'wpcf7_messages', 'wpcf7_captcha_messages', 10, 1 );
contact-form-7/modules/text.php 174
add_filter( 'wpcf7_messages', 'wpcf7_text_messages', 10, 1 );