wp_maybe_auto_update() WordPress Function
The wp_maybe_auto_update() function is used to check if a WordPress update is available, and if so, update the WordPress installation to the latest version. This function is called automatically by WordPress when an update is available.
wp_maybe_auto_update() #
Performs WordPress automatic background updates.
Contents
Description
Updates WordPress core plus any plugins and themes that have automatic updates enabled.
Source
File: wp-includes/update.php
function wp_maybe_auto_update() {
include_once ABSPATH . 'wp-admin/includes/admin.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
$upgrader = new WP_Automatic_Updater;
$upgrader->run();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |