wpcf7_special_mail_tags

The contact-form-7 wpcf7 special mail tags hook.

Published Date - July 22, 2023

Description

$special = apply_filters( 'wpcf7_special_mail_tags', null,
			$mail_tag->tag_name(), $html, $mail_tag
		);

Parameters

  1. $null

  2. $mail_tag_tag_name

  3. $html

  4. $mail_tag


Usage

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)

Defined

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
		);