钩子文档

enable_update_services_configuration

💡 云策文档标注

概述

enable_update_services_configuration 是一个 WordPress 过滤器,用于控制是否在“写作”设置屏幕中显示“更新服务”部分。它允许开发者根据条件启用或禁用该配置区域。

关键要点

  • 这是一个过滤器 Hook,用于管理“更新服务”设置区域的可见性。
  • 参数 $enable 是一个布尔值,决定是否启用该区域,默认值为 true。
  • 在 WordPress 3.0.0 版本中引入。

代码示例

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

📄 原文内容

Filters whether to enable the Update Services section in the Writing settings screen.

Parameters

$enablebool
Whether to enable the Update Services settings area. Default true.

Source

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

Changelog

Version Description
3.0.0 Introduced.