Websites and applications

Disable WordPress automatic updates

Reviewed on 3 min read WordPress updates

WordPress updates itself in the background. It is a convenient way to stay up to date, but on sites with many plugins or heavy customisation you may want to test each update before applying it. These are the ways to control it.

If you disable automatic updates, security updates are up to you. The most balanced option is usually to keep only the minor ones (the 'minor' option) and update major versions by hand.

Core updates: WP_AUTO_UPDATE_CORE

Edit your WordPress wp-config.php file (from the cPanel File Manager or by FTP) and add this line before /* That's all, stop editing! */:

define( 'WP_AUTO_UPDATE_CORE', false );

If the constant already exists in the file, change its value instead of adding it again. The possible values are:

Value What it does
true Updates all versions automatically, including major ones (from 6.8 to 6.9).
false Does not update the core automatically.
'minor' Only minor maintenance and security updates (from 6.8.1 to 6.8.2), never a major version change.

You can also choose this without touching code in Dashboard > Updates: the Switch to automatic updates for maintenance and security releases only link is equivalent to 'minor'. If you define the constant in wp-config.php, the constant takes precedence and that link disappears.

Plugins and themes

Each plugin and theme has its own switch:

  • Plugins: in Plugins > Installed Plugins, Automatic Updates column, click Disable auto-updates for each one.
  • Themes: in Appearance > Themes, open the theme and click Disable auto-updates.

To disable them all at once, without going one by one, add these lines to your child theme's functions.php or, better, to a must-use plugin of your own in wp-content/mu-plugins/sin-actualizaciones.php:

<?php
add_filter( 'auto_update_plugin', '__return_false' );
add_filter( 'auto_update_theme', '__return_false' );

Disable everything: AUTOMATIC_UPDATER_DISABLED

To stop WordPress from making any automatic update (core, plugins, themes or translations), add to wp-config.php:

define( 'AUTOMATIC_UPDATER_DISABLED', true );

This constant also disables core updates, so with it you do not need WP_AUTO_UPDATE_CORE. Updates will still appear in Dashboard > Updates so you can apply them yourself whenever you want.

If they keep updating on their own

If you use WP Toolkit or Softaculous WordPress Manager, these tools update on their own, without going through the WordPress settings. Disable automatic updates for that installation there too. The same happens with management plugins such as Jetpack, ManageWP or MainWP.

When you update by hand, follow the correct order for updating WordPress, plugins and WooCommerce.

You may also find useful

Something wrong or out of date? Tell us and we will review it.