On this page
do_action( 'pre_auto_update', string $type, object $item, string $context )
Fires immediately prior to an auto-update.
Parameters
$typestring-
The type of update being checked:
'core','theme','plugin', or'translation'. $itemobject-
The update offer.
$contextstring-
The filesystem context (a path) against which filesystem access and status should be checked.
Source
File: wp-admin/includes/class-wp-automatic-updater.php. View all references
do_action( 'pre_auto_update', $type, $item, $context );
Related
Used By
| Used By | Description |
|---|---|
| WP_Automatic_Updater::update() wp-admin/includes/class-wp-automatic-updater.php | Updates an item, if appropriate. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_auto_update