wp_mail_original_content
Filter HookDescription
Filters the original content of the email. Give Post-By-Email extending plugins full access to the content, either the raw content, or the content of the last quoted-printable section.Hook Information
File Location |
wp-mail.php
View on GitHub
|
Hook Type | Filter |
Line Number | 201 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$content
|
The original email content. |
Usage Examples
Basic Usage
<?php
// Hook into wp_mail_original_content
add_filter('wp_mail_original_content', 'my_custom_filter', 10, 1);
function my_custom_filter($content) {
// Your custom filtering logic here
return $content;
}
Source Code Context
wp-mail.php:201
- How this hook is used in WordPress core
<?php
196 *
197 * @since 2.8.0
198 *
199 * @param string $content The original email content.
200 */
201 $content = apply_filters( 'wp_mail_original_content', $content );
202
203 if ( false !== stripos( $content_transfer_encoding, 'quoted-printable' ) ) {
204 $content = quoted_printable_decode( $content );
205 }
206
PHP Documentation
<?php
/**
* Filters the original content of the email.
*
* Give Post-By-Email extending plugins full access to the content, either
* the raw content, or the content of the last quoted-printable section.
*
* @since 2.8.0
*
* @param string $content The original email content.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-mail.php
Related Hooks
Related hooks will be displayed here in future updates.