Skip to content
Updates and recovery Beginner

Should WordPress Updates Run Automatically?

Automatic updates suit some parts of WordPress and are risky for others. What to switch on, what to keep manual, and how the settings work.

Should WordPress Updates Run Automatically?

For WordPress core security releases and for translations, yes: let them run automatically, which is the default anyway. For plugins and themes the answer depends on the site. On a simple brochure site automatic updates do more good than harm. On a WooCommerce shop with a payment gateway and a page builder, I would not let major plugin versions install without someone checking the result. The rest of this article explains why, and how to set it up either way.

What WordPress already updates by itself

Since version 3.7 WordPress installs minor core releases on its own, such as 6.6.1 to 6.6.2: the maintenance and security releases. Translations update automatically too. Major core versions, such as 6.6 to 6.7, have had a switch on Dashboard > Updates since 5.6. Plugins and themes each got an Enable auto-updates link on the Plugins and Themes screens in 5.5. Those choices are stored in the database and stay as they are until someone changes them.

The updates run from a scheduled task twice a day. That task depends on WP-Cron, which only runs when the site gets visits and the server can send a request to itself. On a quiet site, or on a host that blocks those loopback requests, automatic updates can lag days behind or never happen at all, while the setting says they are on. WordPress updates on shared hosting explains the fix with a real cron job.

Two other things switch automatic updates off without anyone noticing. If WordPress finds a .git or .svn folder in the installation, it assumes the site is under version control and skips them. And DISALLOW_FILE_MODS in wp-config.php blocks every update from the dashboard, automatic or not.

The case for automatic

Outdated plugins with known holes are the most common way into a WordPress site, and the fix has often been available for weeks by the time the hole is used. Automatic updates close that gap without depending on anyone’s calendar. For a small site with a handful of well-maintained plugins, the chance that an update breaks something is lower than the chance that a missed security fix gets exploited. Leaving such a site to manual updates that happen “when there is time” is the worse choice.

Since WordPress 6.6 there is also a safety net. After an automatic plugin update WordPress requests the home page, and if that produces a fatal error it puts the previous version back and emails the administrator. That catches the crash. It does not catch a broken layout, or a checkout that quietly stopped working.

The case against

Plugin updates break things in ways that never produce a fatal error. A page builder release changes its markup and a custom header falls apart. A major WooCommerce version needs a database update that runs in the background, and a payment plugin that has not caught up yet fails at checkout. An automatic update makes those changes at a random moment, twice a day, with nobody looking, and you hear about it from the client.

Premium plugins add a complication. Many update only while their licence is active, and their own updater decides whether WordPress’s auto-update setting is respected at all. A switch that looks on in the plugin list may do nothing for them.

What I would do

Split by risk instead of choosing one answer for everything.

  • Minor core releases and translations: automatic, everywhere. Leave the defaults on.
  • Major core releases: manual on shops and complex sites, a few days after release, once the first point release is out or at least the early bug reports are in.
  • Small, stable plugins that do not touch the database, such as an SEO plugin on a brochure site: automatic is fine.
  • WooCommerce and its extensions, page builders, membership and booking plugins: manual or in a planned round, with a backup and a check of the pages that matter.
  • Themes: manual if the site has a child theme or template overrides. An unmodified theme can update automatically.

The settings, constants and filters

For one site, the switches on the Plugins and Themes screens are enough. For many sites, set the policy in code, so it is the same everywhere and a client cannot change it by accident. The constants belong in wp-config.php. The filters go in a small must-use plugin in wp-content/mu-plugins, so switching themes does not take them away.

  • define( 'WP_AUTO_UPDATE_CORE', 'minor' ); keeps core on minor releases only. true also allows major versions, false turns automatic core updates off.
  • add_filter( 'auto_update_plugin', '__return_true' ); switches automatic updates on for every plugin, and __return_false switches them off. auto_update_theme does the same for themes.
  • To allow only a list of plugins, hook a function to auto_update_plugin with two arguments; the second is the update item, so you can return in_array( $item->slug, array( 'wordpress-seo', 'redirection' ), true ).
  • auto_update_translation controls translations, and the automatic_updater_disabled filter or the AUTOMATIC_UPDATER_DISABLED constant switches the whole mechanism off.
  • auto_plugin_update_send_email and auto_theme_update_send_email decide whether WordPress emails after automatic updates. Those emails go to the site’s administration address, so check whose address that is on a client site.

A third option

Between automatic and manual sits the planned round: updates run at a time you choose, per site or per group of sites, with a backup first and a check afterwards. You get most of the speed of automatic updates, with somebody, or something, looking at the result. It is how WP Octo handles updates: rounds per package or per site, a backup of what is being updated, a before and after comparison of chosen pages, and automatic rollback of a plugin that breaks the site. The features page shows how a round runs.

For the visual side on its own, read how to detect broken layouts after updates. For the full picture, the guide on how to update WordPress safely at scale puts these choices in the context of a whole portfolio of client sites.

Read also