wp_maybe_auto_update()
Performs WordPress automatic background updates.
Updates WordPress core plus any plugins and themes that have automatic updates enabled.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_maybe_auto_update();
Changelog
Since 3.7.0 | Introduced. |
wp_maybe_auto_update() wp maybe auto update code WP 6.4.3
function wp_maybe_auto_update() { require_once ABSPATH . 'wp-admin/includes/admin.php'; require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; $upgrader = new WP_Automatic_Updater(); $upgrader->run(); }