wp_mail_original_content
Filters the original content of the email.
Description
Give Post-By-Email extending plugins full access to the content, either the raw content, or the content of the last quoted-printable section.
Parameters (1)
- 0. $content (string)
- The original email content.
Usage
- To run the hook, copy the example below.
- $content = apply_filters( 'wp_mail_original_content', $content );
- if ( !empty( $content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wp_mail_original_content callback
- function filter_wp_mail_original_content( $content ) {
- // make filter magic happen here...
- return $content;
- };
- // add the filter
- add_filter( 'wp_mail_original_content', 'filter_wp_mail_original_content', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wp_mail_original_content', 'filter_wp_mail_original_content', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-mail.php
- $content = apply_filters( 'wp_mail_original_content', $content );