1. 首页
  2. WordPress钩子手册

auto_update_{$type}

apply_filters( “auto_update_{$type}”, bool $update, object $item )

过滤钩子:过滤是否自动更新核心、插件、主题或语言。
Filter Hook: Filters whether to automatically update core, a plugin, a theme, or a language.

目录锚点:#说明#参数#源码


说明(Description)

钩子名$type的动态部分指的是要检查的更新类型。可以是“core”、“theme”、“plugin”或“translation”。


参数(Parameters)

参数 类型 说明
$update (bool) 是否更新。
$item (object) 更新提议。

源码(Source)


更新版本 源码位置 使用 被使用
3.7.0 wp-admin/includes/class-wp-automatic-updater.php:184 1 0

auto_update_{$type} 为WP2原创文章,链接:https://www.wp2.cn/hook/auto_update_type/