钩子文档

after_core_auto_updates_settings

💡 云策文档标注

概述

after_core_auto_updates_settings 是一个 WordPress 动作钩子,在核心自动更新设置后触发,允许开发者访问和操作这些设置。

关键要点

  • 这是一个动作钩子,在核心自动更新设置后执行。
  • 参数 $auto_update_settings 是一个数组,包含开发版本、次要更新和主要更新的自动更新设置。
  • 钩子通过 do_action 调用,可用于自定义处理或扩展功能。

代码示例

do_action( 'after_core_auto_updates_settings', $auto_update_settings );

注意事项

  • 此钩子从 WordPress 5.6.0 版本开始引入。
  • 相关函数 core_auto_updates_settings() 用于显示自动更新设置界面。

📄 原文内容

Fires after the major core auto-update settings.

Parameters

$auto_update_settingsarray
Array of core auto-update settings.

  • dev bool
    Whether to enable automatic updates for development versions.
  • minor bool
    Whether to enable minor automatic core updates.
  • major bool
    Whether to enable major automatic core updates.

Source

do_action( 'after_core_auto_updates_settings', $auto_update_settings );

Changelog

Version Description
5.6.0 Introduced.