pre_auto_update

最后更新于:2021-11-27 18:38:27

do_action( ‘pre_auto_update’, string $type, object $item, string $context )

Fires immediately prior to an auto-update.

参数

$type

(string)
The type of update being checked: ‘core’, ‘theme’, ‘plugin’, or ‘translation’.

$item

(object)
The update offer.

$context

(string)
The filesystem context (a path) against which filesystem access and status should be checked.

源文件

文件: gc-admin/includes/class-gc-automatic-updater.php

View on Trac