钩子文档

wp_mail_original_content

💡 云策文档标注

概述

wp_mail_original_content 是一个 WordPress 过滤器,用于过滤电子邮件的原始内容。它允许 Post-By-Email 扩展插件访问原始内容或最后一个 quoted-printable 部分的内容。

关键要点

  • 这是一个过滤器,用于修改或访问电子邮件的原始内容。
  • 主要面向 Post-By-Email 扩展插件,提供对原始内容或 quoted-printable 部分的访问。
  • 参数为字符串类型的 $content,表示原始电子邮件内容。
  • 在 WordPress 2.8.0 版本中引入。

代码示例

$content = apply_filters( 'wp_mail_original_content', $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

$contentstring
The original email content.

Source

$content = apply_filters( 'wp_mail_original_content', $content );

Changelog

Version Description
2.8.0 Introduced.