wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_maybe_auto_update › WordPress Function

Since3.7.0
Deprecatedn/a
wp_maybe_auto_update ( No parameters )
Defined at:
Codex:

Performs WordPress automatic background updates.

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


Source

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