pre_auto_update
do_action( ‘pre_auto_update’, string $type , object $item , string $context )
动作钩子::在自动更新之前立即触发。
Action Hook: Fires immediately prior to an auto-update.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$type | (string) | 正在检查的更新类型:“core”、“theme”、“plugin”或“translation”。 |
$item | (object) | 更新提议。 |
$context | (string) | 应检查文件系统访问和状态的文件系统上下文(路径)。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-admin/includes/class-wp-automatic-updater.php:313 | 1 | 0 |
pre_auto_update 为WP2原创文章,链接:https://www.wp2.cn/hook/pre_auto_update/