How to configure or Disable WordPress auto updates

January 29, 2014 in Blog by

By default, from version 3.7 and above, your WordPress site will do an automatic update when a new security or minor update is released.

This means, that if you’re on WordPress 3.8.0 and version 3.8.1 is released your site will auto update itself. On the other hand, if WordPress 3.9 is released (a major version) by default you will have to update it manually.

However, the truth is that sometimes things don’t go as planned especially if you have heavily customized website with a millions of plugins. If this is a case we strongly suggest that you disable auto-updates for the core, themes, plugins and do all of the updates manually one by one! Looks time-consuming, well it is a hell of a lot better than having your clients website crashed.


How to completely disable the WordPress auto updates

If you want to disable the WordPress auto updates completely, open the wp-config.php file and add this line to it:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

How to enable plugins updates

If you want your plugins to be automatically updated by WordPress when a new version is released, you need to add a line to your wp-config.php file, similar to the one above. This time, however, a filter is used for enabling the plugin auto updates:

add_filter( 'auto_update_plugin', '__return_true' );

How to enable themes updates

If you want WordPress to handle themes updates you need another line added to the wp-config.php file:

add_filter( 'auto_update_theme', '__return_true' );

How to enable major release updates

If you want the WordPress auto updates to handle major core updates too, you will have to add a single configuration line. To do this, open the wp-config.php file in the root folder of your WordPress installation and add this line to it:

define('WP_AUTO_UPDATE_CORE', true);

How to disable core auto updates but enable plugins and themes auto updates

If you want to stop the autoupdates of the WordPress core, but to enable them for your Plugins and/or Themes, you can add these lines in the wp-config.php file:

Stop the core auto updates:

define( 'WP_AUTO_UPDATE_CORE', false );

Then enable the plugins/themes:

add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );

About Milan

The founder of Dessky, Milan has worked in all aspects of advanced web development, from building large commercialized e-commerce and social network systems to troubleshooting small wordpress blogs. His extensive skills cover virtually every area of web development. Milan works hard to implement tomorrow’s trends utilizing the cutting edge systems of today. He specializes in rich internet web application development and deployment, complex HTML5/CSS3 graphical design layouts, full blown framework-driven rich internet applications, and much more. Milan provides elegant solutions to complex problems encountered by businesses that use internet based services. Also he is the MSc of Computer Science.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...Loading...

Leave a Reply

Your email address will not be published. Required fields are marked *

 

fritterkurt@mailxu.com ivanoff_mariella@mailxu.com dauphinais.mariella@mailxu.com