钩子文档

enable_post_by_email_configuration

💡 云策文档标注

概述

本文档介绍 enable_post_by_email_configuration 过滤器,用于控制 WordPress 的通过电子邮件发布文章功能是否启用。该过滤器允许开发者动态调整此功能的配置状态。

关键要点

  • enable_post_by_email_configuration 是一个过滤器,用于判断是否启用通过电子邮件发布文章的功能。
  • 参数 $enabled 是一个布尔值,表示是否启用此功能,默认值为 true。
  • 该过滤器在 WordPress 3.0.0 版本中引入。

代码示例

if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
    // 代码逻辑
}

📄 原文内容

Filters whether the post-by-email functionality is enabled.

Parameters

$enabledbool
Whether post-by-email configuration is enabled. Default true.

Source

if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {

Changelog

Version Description
3.0.0 Introduced.