WP_Automatic_Updater
- Since
- 3.7.0, 4.6.0
- Source
wp-admin/includes/class-wp-automatic-updater.php:16
Core class used for handling automatic background updates.
Compatibility
- WordPress
- since 4.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 14
Every hook that fires from inside WP_Automatic_Updater, in the order it appears in the class, grouped by the method that fires it.
WP_Automatic_Updater::is_vcs_checkout()
- apply_filters( automatic_updates_is_vcs_checkout )filter line 178
WP_Automatic_Updater::send_core_update_notification_email()
- apply_filters( send_core_update_notification_email )filter line 345
WP_Automatic_Updater::update()
- do_action( pre_auto_update )action line 401
WP_Automatic_Updater::run()
- apply_filters( automatic_updates_send_debug_email )filter line 766
- do_action( automatic_updates_complete )action line 783
WP_Automatic_Updater::send_email()
- apply_filters( auto_core_update_send_email )filter line 935
- apply_filters( auto_core_update_email )filter line 1147
WP_Automatic_Updater::after_plugin_theme_update()
- apply_filters( auto_plugin_update_send_email )filter line 1177
- apply_filters( auto_theme_update_send_email )filter line 1200
WP_Automatic_Updater::send_plugin_theme_email()
- apply_filters( auto_plugin_theme_update_email )filter line 1541
Properties · 1
$update_resultsarrayprotected- Tracks update results during processing.
Methods · 13
- is_disabled()Determines whether the entire automatic updater is disabled.
- is_allowed_dir()Checks whether access to a given directory is allowed.
- is_vcs_checkout()Checks for version control checkouts.
- should_update()Tests to see if we can and should update a specific item.
- send_core_update_notification_email()Notifies an administrator of a core update.
- update()Updates an item, if appropriate.
- run()Kicks off the background update process, looping through all pending updates.
- after_core_update()Checks whether to send an email and avoid processing future updates after attempting a core update.
- send_email()Sends an email upon the completion or failure of a background core update.
- after_plugin_theme_update()Checks whether an email should be sent after attempting plugin or theme updates.
- send_plugin_theme_email()Sends an email upon the completion or failure of a plugin or theme background update.
- send_debug_email()Prepares and sends an email of a full log of background update results, useful for debugging and geekery.
- has_fatal_error()Performs a loopback request to check for potential fatal errors.
Changelog
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.6.0
Moved to its own file from wp-admin/includes/class-wp-upgrader.php.from the docblock
3.7.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-admin/includes/class-wp-automatic-updater.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.