wpcf7_mail_html_header

The Contact Form 7 wpcf7 mail html header hook.

Description

Parameters (2)

0. $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body — Optional. (string) => '' . esc_html( $this->get( 'subject', true ) ) . ' '
The doctype html html xmlns http www w3 org 1999 xhtml head title esc html this get subject true title head body.
1. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body = apply_filters( 'wpcf7_mail_html_header', $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body, $instance ); 
  2.  
  3. if ( !empty( $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wpcf7_mail_html_header callback 
  2. function filter_wpcf7_mail_html_header( $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body, $instance ) { 
  3. // make filter magic happen here... 
  4. return $doctype_html_html_xmlns_http_www_w3_org_1999_xhtml_head_title_esc_html_this_get_subject_true_title_head_body
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wpcf7_mail_html_header', 'filter_wpcf7_mail_html_header', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wpcf7_mail_html_header', 'filter_wpcf7_mail_html_header', 10, 2 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/mail.php  
  1. $header = apply_filters( 'wpcf7_mail_html_header',