wp_mail_content_type

This filter is documented in wp-includes/pluggable.php.

Description

add_filter( 'wp_mail_content_type', (unknown) $class_get_mail_content_type ); 

Parameters (1)

0. $class_get_mail_content_type (unknown) => __CLASS__ . '::get_mail_content_type'
The class get mail content type.

Usage

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

Defined (2)

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

/modules/contact-form/grunion-contact-form.php  
  1. add_filter( 'wp_mail_content_type', __CLASS__ . '::get_mail_content_type' ); 
  1. remove_filter( 'wp_mail_content_type', __CLASS__ . '::get_mail_content_type' );