I’m not a fan of automatic updates. Unless there’s a security issue, I don’t update WordPress, themes, and plugins right away.
Our Top Ranked #1 Web Host for WordPress Hosting
Latest Uptime Stats (Real Records):
Server Response Speed Test Scored A+:
I learned it the hard way!
Updates (even minor ones) often come with bugs that can break your website.
Therefore, I always disable automatic updates and wait at least a week before I start updating things.
Usually, if the developers are active, a week or more is enough for them to spot the bugs and release a new update with fixes.
A good example is WooCommerce, who always has a lot of updates with fixes.
Accessing Your WordPress Files
Depending on what automatic WordPress updates you want to disable, you’ll have to access one or two files:
wp-config.php file is normally found in the
If you’re using an add-on domain, it should be in:
You’ll have to add one of the codes below right before the
/* That's all, stop editing! Happy blogging. */ line.
functions.php file is found in your child theme’s folder:
I recommend having a child theme in place, otherwise, the changes will be removed with the next update!
Or, you could use a plugin called Code Snippets.
functions.php, you have to add the code at the very bottom or right before the
?> closing tag if it has one.
Disable All Types of Automatic Updates
Add this code in the
define( 'AUTOMATIC_UPDATER_DISABLED', true );
This will disable automatic updates for WordPress, themes, and plugins.
Note that this applies for themes and plugins from the WordPress repository, not premium ones.
Disable WordPress Core Automatic Updates
If you only want to disable WordPress core automatic updates (minor and major), then use one of the following codes.
For both minor and major updates (in
define( 'WP_AUTO_UPDATE_CORE', false );
For major updates (in
wp-config.php) – will only allow minor updates:
define( 'WP_AUTO_UPDATE_CORE', minor );
For minor updates (in
add_filter( 'allow_minor_auto_core_updates', '__return_false' );
Disable Automatic Updates for Themes and Plugins
As I mentioned above, this won’t apply to plugins and themes that are not in the WordPress repository.
WordPress doesn’t automatically update themes and plugins unless there’s a very special case, like, a serious security issue.
Both codes go into the
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );
Will This Work 100%?
Some web hosts might have their own tools that perform automatic WordPress updates and override the above codes.
For example, SiteGround (affiliate link ) has a tool called WP Auto Update, which automatically updates WordPress even if you add those PHP codes.
Fortunately, they allow you to delay or skip automatic WordPress updates.
So, you should check if your web host has such a feature before adding the codes, which might prove to be pointless.
That’s a Wrap
I hope you found the guide comprehensive, and you managed to disable the automatic WordPress updates that you wanted!
If you have any questions or thoughts, drop a comment or send a message via contact or Facebook page.
Don’t forget to share the post to help out others!