Skip to content

Disabling plugin and theme auto-update site-wide on WordPress on cPanel

How to disable plugin and theme automatic updates across an entire WordPress install on cPanel — wp-config constants, filters, and the trade-offs against managed-update flows.

WordPress 5.5 added per-plugin and per-theme auto-update toggles. The default for new installs is off, but plugins themselves can opt in (and some do, silently), and individual users can turn on auto-update from the dashboard. On a managed environment where updates are coordinated through a deploy process, you want one source of truth — and “the user clicked the toggle” should not be it.

What’s happening

Auto-updates fire via WP-Cron. WordPress checks each enabled-for-auto-update plugin and theme against the WordPress.org API, and if a new version exists, downloads and installs it. The trigger fires whenever WP-Cron runs. On a busy site, that’s every few minutes. The result is updates landing at unpredictable times, possibly during peak traffic, with no human in the loop. That’s fine for low-stakes sites where breakage is recoverable; it’s wrong for managed environments where every update should be intentional.

How to verify

Check the current state:

wp config get AUTOMATIC_UPDATER_DISABLED 2>/dev/null
wp config get WP_AUTO_UPDATE_CORE 2>/dev/null
wp plugin list --field=name,auto_update --format=table
wp theme list --field=name,auto_update --format=table

The plugin and theme lists show which ones are set to auto-update. The constant AUTOMATIC_UPDATER_DISABLED turns off everything if set to true.

The fix

  1. Decide the policy. The clean choices:

    • Disable all automatic updates (core, plugins, themes). All updates run via WP-CLI or WP Toolkit on a schedule. Most predictable.
    • Auto-update core minor versions only. Plugins and themes are managed. WordPress’s default for new installs is close to this.
    • Auto-update core minor + security plugins (Wordfence, Sucuri). Useful when you want immediate response to CVEs but managed everything else.
  2. To disable everything, add to wp-config.php:

    define( 'AUTOMATIC_UPDATER_DISABLED', true );

    That’s the master kill switch. With this set, no automatic updates fire — core, plugin, theme, or translation.

  3. To disable only plugin and theme auto-updates while keeping core auto-update for minor versions:

    define( 'WP_AUTO_UPDATE_CORE', 'minor' );

    Plus filters in a mu-plugin:

    add_filter( 'auto_update_plugin', '__return_false' );
    add_filter( 'auto_update_theme', '__return_false' );
    add_filter( 'auto_update_translation', '__return_false' );
  4. Disable file modifications entirely (the harder posture):

    define( 'DISALLOW_FILE_MODS', true );

    This blocks the dashboard from installing or updating plugins, themes, or core. Every update has to come via WP-CLI or via deploying new files. This is the right choice when you deploy from Git.

  5. Reset the per-plugin auto-update toggles to off. Even with filters in place, the dashboard still shows the toggle and some users will be confused that “I enabled it but it doesn’t update.” Hide the toggles:

    add_filter( 'plugins_auto_update_enabled', '__return_false' );
    add_filter( 'themes_auto_update_enabled', '__return_false' );
  6. Communicate to anyone with admin access. The most common ticket after this change is “I can’t update X from the admin” — the answer is “correct, by design, here’s how the new path works.”

  7. Build the replacement path. WP-CLI on a cron schedule:

    #!/bin/bash
    cd /home/cpaneluser/public_html
    wp plugin update --all
    wp theme update --all
    curl -fsS https://example.com >/dev/null && echo "OK" || echo "BROKEN"

    Schedule this for off-peak (3 a.m. local) and pipe the output to a notification destination so someone sees the result.

  8. For a managed cPanel fleet, this configuration applies consistently across all sites via a deploy template. Stack Harbor handles this as part of managed cPanel operations.

Stack Harbor operates production WordPress at scale — see enterprise WordPress hosting for the managed model, or book a WordPress consult for a written read of your current shape.