A WordPress-centric search engine for devs and theme authors



wp_maybe_auto_update ›

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

Performs WordPress automatic background updates.



Source

function wp_maybe_auto_update() {
	include_once( ABSPATH . '/wp-admin/includes/admin.php' );
	include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' );

	$upgrader = new WP_Automatic_Updater;
	$upgrader->run();
}