How to Configure or Disable Automatic Updates in WordPress

update-wordpress

From WordPress 3.7, WordPress enabled automatic updates for all the minor and security releases. This particular WordPress feature is very helpful as to keep the WordPress core up to date regardless of the user attention. Even though this feature is very helpful in securing your WordPress website, some users may want to disable this feature due to reasons.

These reasons include but not limited to custom plugins, custom themes, etc.., or you just want more control on how and when your WordPress site should be updated so that you can deal with compatibility issues. So in this article, let us show you how to configure or disable automatic updates in WordPress.

Note:

1. Disabling automatic updates is strongly discouraged as it may put you at risk if you are not updating all the plugins, themes and core when required.

2. This procedure includes editing WordPress core files. So, make sure that you have a good backup in case anything happens.

Disable Automatic Updates in WordPress

If you just want to disable all the automatic updates for the WordPress minor, security and development releases, then add the following code at the end of the wp-config.php file. That’s it, once you add the code, all the WordPress automatic updates are disabled. But you will still get notified whenever there is an update available.

/* Disalbe WordPress Automatic Updates */
define( 'WP_AUTO_UPDATE_CORE', false );

However, if you want to configure the automatic updates to only update the WordPress core when there are minor releases (excludes security and development releases), then add the below code in your wp-config.php file.

/* Enable Minor WordPress Automatic Updates */
define( 'WP_AUTO_UPDATE_CORE', 'minor' );

If you want to get all the automatic WordPress updates like minor, security and development releases, then add the code shown below in your wp-config.php file and save it.

/* Enalbe WordPress Automatic Updates */
define( 'WP_AUTO_UPDATE_CORE', true );

Disable Automatic Plugin Updates

Besides from disabling the core updates, you can also disable automatic plugin update. Automatic updates are really helpful where there is a security patch available for your plugin. But if think the new plugin update may break your site, then copy the below code and paste it in your theme’s functions.php file.

// Disable Automatic Plugin Updates
add_filter( 'auto_update_plugin', '__return_false' );

This action will disable all the automatic plugin updates.

Disable Automatic Theme Updates

Sometimes, the theme updates may break your site structure. If you want to test the update before applying the update, then you may want to disable automatic theme updates. To do that, copy and paste the below code in your theme’s functions.php file.

// Disable Automatic Theme Updates
add_filter( 'auto_update_theme', '__return_false' );

That being said, if you are uncomfortable add custom code into the configuration file, you can use Advanced Automatic Updates plugin to configure or disable automatic updates in WordPress.

That’s all there is to do and it is that simple to configure or disable automatic updates. Hopefully that helps and do comment below if you face any problems while disabling the automatic updates feature in WordPress.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.