Have you ever wanted to disable the WordPress auto-update feature and wondered how to do it? You probably know that WordPress automatically updates your site – including themes and plugins – from time to time.
While there’s a ton of benefits of automatic updates, there’s a slight chance they can break your website. Developers and testers always do their best to prevent this from happening, but it still occurs on occasion.
Automatic updates were introduced with the 3.7 version of WordPress, in an effort to improve security measures.
If you’re one of the millions of users who have the Yoast SEO plugin installed, your site is updated every week automatically, without any notifications whatsoever.
While by default not all of these updates are automatic, WordPress can carry out a total of four auto-updates: theme updates, plugin updates, translation file updates, and core updates.
WordPress is set up by default to carry out minor core updates and translation file updates. It also has the possibility of auto-updating certain plugins or themes in extreme security-related cases.
In this guide, we’ll show you how to disable the WordPress auto-update feature manually with code and with the help of a plugin.
Table of contents
How to Disable WordPress Auto-Update Feature Using Code
In order to completely disable the WordPress auto-update feature, you just need to insert a short snippet of code. First, you need to download an FTP client and edit the wp-config.php file on your computer. Needless to say, before making any changes, you should backup your site.
If you want to disable the core WordPress updates, simply do the following:
- Start your FTP client.
- Connect to your site.
- Open the wp-config.php file.
- And add this line of code:
define( 'WP_AUTO_UPDATE_CORE', false );
Keep in mind that is good practice to always comment the new code added in. For example, above the code below is a line of comment that will explain what that code does.
On the other hand, if you want, if you only want major and development updates disabled, you should add this line of code instead:
/* Allow only minor WordPress updates */ define( 'WP_AUTO_UPDATE_CORE', minor );
By using the code snippets above, your site will update the core software for small bug fixes and security updates. It won’t, however, automatically update to any major release.
In our opinion, this is a good compromise, since you’re allowing fixes that protect your site from malware and cyber-attacks and stopping major updates that may mess your site up.
This way, you won’t run into a scenario where something crucial gets broken due to an update.
By the way, if you already have them turned off and want to turn them back on, you should use the following code:
define( 'WP_AUTO_UPDATE_CORE', true );
Bonus: Disabling Automatic Theme and Plugin Updates
While the code above disables software updates, it won’t stop your themes and plugins from updating. Before we move on, we should mention that WordPress rarely updates its themes and plugins. In most cases, WordPress forces an update in case of a major security vulnerability.
! This means you should be careful before disabling automatic theme and plugin updates.
Nonetheless, if you still want to proceed, here are the lines of code you need to use:
In order to disable theme updates, use this line of code in the functions.php file of your theme:
add_filter( 'auto_update_theme', '__return_false' );
In order to disable plugin updates, just use the following filter in the functions.php file of your plugin:
add_filter( 'auto_update_plugin', '__return_false' );
Of course, you can always get more detailed. For instance, you can choose to disable updates on specific themes and plugins you’ve installed. You can find the explanation of this method on the WordPress Codex site.
To do it the other way around and enable automatic theme updates use this code in the theme’s functions.php file:
add_filter( 'auto_update_theme', '__return_true' );
And this one to enable automatic plugin updates:
add_filter( 'auto_update_plugin', '__return_true' );
How to Disable WordPress Auto-Update Feature Using a Plugin
If you don’t have a lot of experience with coding or using FTP clients, you can achieve the same results by downloading and installing a simple plugin. While there are many auto-update-disabling plugins out there, we recommend the Easy Updates Manager.
The plugin has a 5-star rating on the official repository.
You can download it from the link above, but it’s also listed in at WordPress.org so you can go to your dashboard right away and find it there.
After you activate the plugin, you need to go to Updates Options in order to configure the plugin. The plugin itself has a very clear dashboard, where you can turn all types of updates off.
The first tab called General deals with a basic overview of your options.
Here, you’ll be able to disable a number of core updates, turn on or off automatic updates, check logs, and so forth.
Moving over to the Plugins and Themes tabs, you can toggle on or off automatic updates for individual themes and plugins at will.
How to Disable Email Notifications
If you are looking to disable the email notifications you receive each time an update is completed, you are in luck as this is what we’re going to talk about now.
These email notifications are usually sent out in a few specific situations including:
- When an update was successfully completed.
- When WordPress tried to update but could not.
- Or, when there was a critical failure.
To stop receiving these emails, complete the following:
- Create a backup of your site.
- Open your favorite FTP client and connect to your site.
- Go to your theme’s functions.php file and add this code:
apply_filters( 'auto_core_update_send_email', false, $type, $core_update, $result );
4. To reverse the change replace the code above with this one:
apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result );
It doesn’t get much easier than that!
If you’re looking to add notifications to your site for your visitors, we have an article all about that too, covering free WordPress notification bar plugins.
Pros and Cons of Having Auto-Updates
When it comes to the WordPress auto-update feature, there are pros and cons to having it enabled. Let’s start with the advantages.
- Auto updates mean one less thing to worry about.
- They keep your website secure and up-to-date.
- Bug fixes are automatically implemented, which mean fewer chances of your website experiencing weird glitches.
- You will benefit from having immediate access to improvements and new features.
That’s all well and good, but there are a few drawbacks, however.
- Auto-updates override changes and any edits you might have made to the theme/plugin’s files so you’ll have to re-add them every time an update occurs.
- Sometimes, incompatibility with other plugins or the theme you’re using can develop.
Like we said before, you shouldn’t disable automatic updates on a whim. Should you decide to do this, keep in mind that you’ll have to manually update your site if you want to stay safe.
If you’re running your site on outdated software, you’re leaving a huge security hole for hackers out there to exploit, just like if you leave the WordPress admin bar visible.
However, if you manage to stay on top of updates and do everything manually, you’ll do fine. Disabling these updates is actually a good way of staying in control and ensuring that nothing breaks in case of an unexpected change. It’s all about balance.
And if you can strike the right one, your site will perform much better, it’ll remain safer, and you’ll experience far fewer update-related headaches.