钩子文档

plugins_auto_update_enabled

💡 云策文档标注

概述

此文档介绍 WordPress 中的 'plugins_auto_update_enabled' 过滤器,用于控制插件自动更新功能的启用状态。开发者可以通过此过滤器修改插件自动更新的默认行为。

关键要点

  • 'plugins_auto_update_enabled' 是一个过滤器,接受一个布尔参数 $enabled,表示插件自动更新是否启用。
  • 此过滤器在 WordPress 5.5.0 版本中引入,允许开发者自定义插件自动更新的逻辑。
  • 相关函数 wp_is_auto_update_enabled_for_type() 可用于检查自动更新是否启用。

📄 原文内容

Filters whether plugins auto-update is enabled.

Parameters

$enabledbool
True if plugins auto-update is enabled, false otherwise.

Source

return apply_filters( 'plugins_auto_update_enabled', $enabled );

Changelog

Version Description
5.5.0 Introduced.