wpcf7_mail_tag_replaced_(type) хук-фильтр . CF7 1.0
Использование
add_filter( 'wpcf7_mail_tag_replaced_(type)', 'filter_function_name_2625', 10, 4 ); function filter_function_name_2625( $replaced, $submitted, $html, $mail_tag ){ // filter... return $replaced; }
- $replaced
- -
- $submitted
- -
- $html
- -
- $mail_tag
- -
Где вызывается хук
contact-form-7/includes/mail.php 341-344
$replaced = apply_filters( "wpcf7_mail_tag_replaced_{$type}", $replaced, $submitted, $html, $mail_tag );
Где используется хук в ядре Contact Form 7
contact-form-7/modules/acceptance.php 195
add_filter( 'wpcf7_mail_tag_replaced_acceptance',
contact-form-7/modules/file.php 89
add_filter( 'wpcf7_mail_tag_replaced_file', 'wpcf7_file_mail_tag', 10, 4 );
contact-form-7/modules/file.php 90
add_filter( 'wpcf7_mail_tag_replaced_file*', 'wpcf7_file_mail_tag', 10, 4 );
contact-form-7/modules/quiz.php 167
add_filter( 'wpcf7_mail_tag_replaced_quiz', 'wpcf7_quiz_mail_tag', 10, 4 );