wppaste
WordPress

apply_filters( 'wp_mail_original_content', string $content )

Since
2.8.0
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.

Compatibility

WordPress
since 2.8.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$contentstring
The original email content.

Where this hook fires · 1

  • wp-mail.php:193file scope

Source code

	 * the raw content, or the content of the last quoted-printable section.	 *	 * @since 2.8.0	 *	 * @param string $content The original email content.	 */	$content = apply_filters( 'wp_mail_original_content', $content ); 	if ( false !== stripos( $content_transfer_encoding, 'quoted-printable' ) ) {		$content = quoted_printable_decode( $content );	} 	if ( function_exists( 'iconv' ) && ! empty( $charset ) ) {

Changelog

Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.