The contact-form-7 wpcf7 special mail tags hook.
Published Date - July 22, 2023
$special = apply_filters( 'wpcf7_special_mail_tags', null,
$mail_tag->tag_name(), $html, $mail_tag
);
$null
$mail_tag_tag_name
$html
$mail_tag
The following example is for adding a hook callback.
// define the wpcf7_special_mail_tags callback
function custom_wpcf7_special_mail_tags( $null, $mail_tag_tag_name, $html, $mail_tag ){
//custom code here
return $null
}
//add the action
add_filter('wpcf7_special_mail_tags', 'custom_wpcf7_special_mail_tags', 10, 4)
The filter is defined in the following location(s).
contact-form-7/includes/mail.php
$special = apply_filters( 'wpcf7_special_mail_tags', null,
$mail_tag->tag_name(), $html, $mail_tag
);
contact-form-7/modules/flamingo.php
$meta[$smt] = apply_filters( 'wpcf7_special_mail_tags', null,
$tagname, false, $mail_tag
);