wp_mail

The WordPress Core wp mail hook.

Description

add_filter( 'wp_mail', (string) $wp_staticize_emoji_for_email ); 

Parameters (1)

0. $wp_staticize_emoji_for_email (string) => 'wp_staticize_emoji_for_email'
The wp staticize emoji for email.

Usage

To run the hook, copy the example below.
  1. $wp_staticize_emoji_for_email = apply_filters( 'wp_mail', $wp_staticize_emoji_for_email ); 
  2.  
  3. if ( !empty( $wp_staticize_emoji_for_email ) ) { 
  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 callback 
  2. function filter_wp_mail( $wp_staticize_emoji_for_email ) { 
  3. // make filter magic happen here... 
  4. return $wp_staticize_emoji_for_email
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wp_mail', 'filter_wp_mail', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wp_mail', 'filter_wp_mail', 10, 1 ); 

Defined (2)

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

/wp-includes/default-filters.php  
  1. add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 
/wp-includes/pluggable.php  
  1. $atts = apply_filters( 'wp_mail', compact( 'to', 'subject', 'message', 'headers', 'attachments' ) );