wpcf7_mail_tag_replaced_(type) хук-фильтрCF7 1.0

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

add_filter( 'wpcf7_mail_tag_replaced_(type)', 'wp_kama_wpcf7_mail_tag_replaced_type_filter', 10, 4 );

/**
 * Function for `wpcf7_mail_tag_replaced_(type)` filter-hook.
 * 
 * @param  $replaced  
 * @param  $submitted 
 * @param  $html      
 * @param  $mail_tag  
 *
 * @return 
 */
function wp_kama_wpcf7_mail_tag_replaced_type_filter( $replaced, $submitted, $html, $mail_tag ){

	// filter...
	return $replaced;
}
$replaced
-
$submitted
-
$html
-
$mail_tag
-

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

WPCF7_MailTaggedText::replace_tags_callback()
wpcf7_mail_tag_replaced_(type)
contact-form-7/includes/mail.php 399-402
$replaced = apply_filters(
	"wpcf7_mail_tag_replaced_{$type}", $replaced,
	$submitted, $html, $mail_tag
);

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

contact-form-7/modules/acceptance.php 197
add_filter( 'wpcf7_mail_tag_replaced_acceptance',
contact-form-7/modules/file.php 113
add_filter( 'wpcf7_mail_tag_replaced_file', 'wpcf7_file_mail_tag', 10, 4 );
contact-form-7/modules/file.php 114
add_filter( 'wpcf7_mail_tag_replaced_file*', 'wpcf7_file_mail_tag', 10, 4 );
contact-form-7/modules/quiz.php 175
add_filter( 'wpcf7_mail_tag_replaced_quiz', 'wpcf7_quiz_mail_tag', 10, 4 );