How to disable automatic updates in WordPress?

BillEssley

Well-known member
Registered
Joined
Feb 19, 2013
Messages
358
Points
28
All my websites are using Wordpress but I don't like the feature auto updates in Wordpress because some my plugins can not work with new version of Wordpress, I need to make sure that we will work with new version before updating to new version. Does any one know how to Disable Automatic Updates in WordPress?
 

Localnode

Well-known member
Registered
Joined
Dec 15, 2015
Messages
333
Points
43
You can disable automatic updates in WordPress by adding this line of code in your wp-config.php file:
Code:
define( 'WP_AUTO_UPDATE_CORE', false );
This will disable all automatic WordPress updates.
 

Localnode

Well-known member
Registered
Joined
Dec 15, 2015
Messages
333
Points
43

BillEssley

Well-known member
Registered
Joined
Feb 19, 2013
Messages
358
Points
28
BillEssley
I added the command define( 'WP_AUTO_UPDATE_CORE', false ); to wp-config.php after define('WPLANG', '');

but I'm still seeing this notice there, I don't know automatic WP update is disabled or not

wordpress 5.0 update.jpg

I found this command and added it to functions.php in theme folder and it worked as required.

Code:
// Hide the "Please update Wordpress now" notification
function hide_update_notice() {
   remove_action( 'admin_notices', 'update_nag', 3 );
}
add_action( 'admin_notices', 'hide_update_notice', 1 );
 

ForwardWeb - Branden

Well-known member
Hosting Provider
Registered
Joined
Aug 31, 2018
Messages
198
Points
28
All my websites are using Wordpress but I don't like the feature auto updates in Wordpress because some my plugins can not work with new version of Wordpress, I need to make sure that we will work with new version before updating to new version. Does any one know how to Disable Automatic Updates in WordPress?
Hi I would actually consider finding alternative plugins because not staying updated on WordPress can be very risky maybe i can help find alternatives for you
 

paidboom

Member
Registered
Joined
Nov 30, 2018
Messages
36
Points
8
I added the command define( 'WP_AUTO_UPDATE_CORE', false ); to wp-config.php after define('WPLANG', '');
but I'm still seeing this notice there, I don't know automatic WP update is disabled or not
View attachment 2706
I found this command and added it to functions.php in theme folder and it worked as required.
Code:
// Hide the "Please update Wordpress now" notification
function hide_update_notice() {
   remove_action( 'admin_notices', 'update_nag', 3 );
}
add_action( 'admin_notices', 'hide_update_notice', 1 );
I'm still seeing this notice there, I don't know automatic WP update is disabled or not
You need to update your WordPress to 5.0
It isn't upgraded automatically which does mean auto upgrade has been disabled.

also note, WordPress 5.0 may break your site. take a backup and update plugins and themes before pushing WordPress upgrade.
 

Veesp

Member
Registered
Joined
Apr 18, 2017
Messages
47
Points
8
Hi, BillEssley!
If you allow me, I have to mention that automatic updates in WordPress concern only tech releases which mission is to fix some critical WordPress bugs and vulnerabilities. It is not safe and not recommended to skip such updates. You are the exception if you use any tools to deploy projects to remote servers, such as Capistrano or SaltStack, or you may be using a version control system.
Then to completely disable the automatic updates you can try using the following constant in your wp-config.php file.

define( 'AUTOMATIC_UPDATER_DISABLED', true );

Please note that with this directive, you will also disable automatic updates of language packs, themes and plugins, if enabled.
With the command WP_AUTO_UPDATE_CORE, you can control the automatic update of the WordPress core, e.g.

add_filter( 'auto_update_core', '__return_false' );

By default, WordPress will not automatically update your themes and plugins, but this can be easily changed using the auto_update_theme and auto_update_plugin filters:

/**
* Plugin Name: Auto-update Plugins and Themes
*/
add_filter( 'auto_update_theme', '__return_true' );
add_filter( 'auto_update_plugin', '__return_true' );

P.S. I advise you not to add commands to functions.php, because it does not give you any advantages, and this file will no longer be executed if you suddenly decide to change the theme of your site.
 

cheapestwebhosting

Well-known member
Registered
Joined
Mar 1, 2018
Messages
102
Points
18
All my websites are using Wordpress but I don't like the feature auto updates in Wordpress because some my plugins can not work with new version of Wordpress, I need to make sure that we will work with new version before updating to new version. Does any one know how to Disable Automatic Updates in WordPress?
for security its not good practice, your website might hacked someday
better have good backup periodically

btw what is the plugin? maybe there is a way to still update the wp while still using the plugin
 

bountysite

Well-known member
Registered
Joined
Oct 11, 2017
Messages
109
Points
28
You need to get help from plugin developer, to get support for latest wordpress version. You cannot run old version of wordpress for long.
Always have a remote backup.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top