Disabling Automatic WordPress Updates

What if you don’t want to use a plugin? You can disable automatic updates in WordPress by adding this line of code in your wp-config.php file:

1define( 'WP_AUTO_UPDATE_CORE', false );

This will disable all automatic WordPress updates.

Important: Make sure you read our article on how to safely edit the wp-config.php file in WordPress with step by step instructions.

If you want to receive minor core updates, but disable theme and plugin updates, you can do so by adding the following filters in your theme’s functions.php file or in a site-specific plugin.

Disable automatic WordPress plugin updates:

1add_filter( 'auto_update_plugin', '__return_false' );

Disable automatic WordPress theme updates:

1add_filter( 'auto_update_theme', '__return_false' );

Pros and Cons of Automatic WordPress Updates

Now you know how to disable automatic updates, but should you disable them? There’s no right answer and this depends on you and your website.

On our sites, we’ve disabled automatic plugin and theme updates while keeping the minor core updates enabled.

Let’s take a look at the advantages and disadvantages of automatic updates. That way, you can decide whether to disable auto-updates on your site.

Leave a Comment

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

Open chat