Enabling Major Auto Updates in WordPress 3.7
The recently released WordPress version 3.7 showcases automatic updates as one of its best features. But generally, this is applicable only to minor or security updates, such as moving up from 3.7 to 3.7.1, but not to 3.8 because then it will be a significant change.
If you run several WordPress sites without managed WP hosting, enabling updates manually can be troublesome. With a bit of tweaking though, you’ll be able to display automatic major updates.
All you have to do is add this line of code to your site’s wp-config.php file.
define(
'WP_AUTO_UPDATE_CORE'
, true );
But this code enables development or nightly updates, so if you don’t need those, simply add this line of code in a site-specific plugin or in your theme’s functions.php file.
add_filter(
'allow_dev_auto_core_updates'
,
'__return_false'
);
Now your WordPress site will conveniently update itself every time a new WordPress version is available. Enjoy!