wp_maybe_auto_update()

Performs WordPress automatic background updates.


Description

Updates WordPress core plus any plugins and themes that have automatic updates enabled.


Top ↑

Source

File: wp-includes/update.php. View all references

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();
}

Top ↑

Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.