allow_minor_auto_core_updates
云策文档标注
概述
allow_minor_auto_core_updates 是一个 WordPress 过滤器,用于控制是否启用 WordPress 核心的次要版本自动更新。它允许开发者自定义自动更新行为。
关键要点
- 这是一个过滤器,用于管理 WordPress 核心的次要版本自动更新。
- 参数 $upgrade_minor 是一个布尔值,决定是否启用自动更新。
- 在 WordPress 3.7.0 版本中引入。
相关函数
- core_auto_updates_settings(): 显示 WordPress 自动更新设置。
- WP_Site_Health_Auto_Updates::test_accepts_minor_updates(): 检查站点是否支持自动次要更新。
- Core_Upgrader::should_update_to_version(): 确定 WordPress 核心是否应更新到提供的版本。
原文内容
Filters whether to enable minor automatic core updates.
Parameters
$upgrade_minorbool-
Whether to enable minor automatic core updates.
Source
return apply_filters( 'allow_minor_auto_core_updates', $upgrade_minor );
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |