wpcf7_mail_tag_replaced_(type)
Использование
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
- -
Где вызывается хук
contact-form-7/includes/mail.php 578-581
$replaced = apply_filters( "wpcf7_mail_tag_replaced_{$type}", $replaced, $submitted, $html, $mail_tag );
Где используется хук в Contact Form 7
contact-form-7/modules/acceptance.php 199
add_filter( 'wpcf7_mail_tag_replaced_acceptance',
contact-form-7/modules/file.php 114
add_filter( 'wpcf7_mail_tag_replaced_file', 'wpcf7_file_mail_tag', 10, 4 );
contact-form-7/modules/file.php 115
add_filter( 'wpcf7_mail_tag_replaced_file*', 'wpcf7_file_mail_tag', 10, 4 );