PDA

View Full Version : Disable wordpress automatic upgrades/updates/notifications in wp-config.php



Fli
02-24-2022, 11:27 AM
To disable Wordpress automatic upgrades following should work.

Open wp-config.php file and to the second line, add new line:

define( 'WP_AUTO_UPDATE_CORE', false );

i guess there are also plugins for this.

For all updates disable, try instead:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

To instead disable just update notification e-mail (for themes & plugins only):

define( 'WP_DISABLE_PLUGINS_AUTO_UPDATE_EMAIL', true );
define( 'WP_DISABLE_THEMES_AUTO_UPDATE_EMAIL', true );

Gimli
03-04-2022, 03:25 AM
There are plugins to stop WordPress core from updating, the code ive seen you use here ive seen bypassed by some hosting providers.

Im not going to go down the line of why you should never disable updates on your website, but given that updates break things so often on a website I can also understand why you would want to control it. I think WordPress really needs to let website owners enable a manual notification and update option.

Better yet some kind of scanning tool alongside the new update to see if there are any compatibility issues with plugins Before you install that update, then pause it.