Skip to main content

wp plugin auto-updates

Overview

Control whether WordPress automatically updates individual plugins in the background. Enable auto-updates for security plugins, disable them for plugins that require careful version management.

What It Does

wp plugin auto-updates manages the WordPress auto-update setting (introduced in WP 5.5) for installed plugins. When enabled, WordPress will automatically download and apply updates for that plugin during background update runs — without any manual intervention.

Syntax

wp plugin auto-updates <command> [<plugin>...] [--all] [--enabled-only] [--disabled-only] [--format=<format>]

Subcommands

SubcommandDescription
enableEnable auto-updates for plugin(s)
disableDisable auto-updates for plugin(s)
statusShow the current auto-update setting for plugin(s)

Arguments & Options

Argument / FlagDescription
PLUGIN...Plugin slug(s) to target
--allApply to all installed plugins
--enabled-onlyFilter to plugins with auto-updates enabled
--disabled-onlyFilter to plugins with auto-updates disabled
--format=FORMATOutput: table, json, csv, yaml, count

Basic Usage

Enable auto-updates for a plugin

wp plugin auto-updates enable woocommerce

Output:

Success: Enabled 1 plugin auto update.

Disable auto-updates for a plugin

wp plugin auto-updates disable woocommerce

Enable for all plugins

wp plugin auto-updates enable --all

Disable for all plugins

wp plugin auto-updates disable --all

Check auto-update status

wp plugin auto-updates status woocommerce

List all plugins and their auto-update status

wp plugin auto-updates status --all

Output:

+--------------------+--------+
| name | auto_update |
+--------------------+--------+
| akismet | on |
| contact-form-7 | off |
| woocommerce | off |
| wordfence | on |
+--------------------+--------+

When to Enable vs Disable

✅ Good candidates for auto-updates ON

Plugin TypeWhy
Security plugins (Wordfence, Sucuri)Critical patches should apply immediately
Spam protection (Akismet)Ruleset updates are always safe
Translation / language pluginsTypically safe, low risk
Simple utility pluginsLow dependency risk

❌ Good candidates for auto-updates OFF

Plugin TypeWhy
WooCommerce coreMajor versions can break integrations
ACF / Gravity FormsCustom data structures need migration review
Page builders (Elementor, Bricks)UI changes require testing
Custom / premium pluginsNo WordPress.org update API
Heavily customized pluginsOverwriting custom code

Real-World Scenarios

Scenario 1: Enable auto-updates only for security plugins

# Disable auto-updates for everything first
wp plugin auto-updates disable --all

# Enable only for security/essential plugins
wp plugin auto-updates enable wordfence
wp plugin auto-updates enable akismet
wp plugin auto-updates enable really-simple-ssl

Scenario 2: Audit auto-update status across all plugins

wp plugin auto-updates status --all --format=csv > auto-update-audit.csv
cat auto-update-audit.csv

Scenario 3: Enable auto-updates for all security-critical plugins in a fleet

SECURITY_PLUGINS=("wordfence" "akismet" "really-simple-ssl")
SITES=("/var/www/site1" "/var/www/site2")

for site in "${SITES[@]}"; do
for plugin in "${SECURITY_PLUGINS[@]}"; do
wp --path="${site}" plugin auto-updates enable "${plugin}" --quiet 2>/dev/null || true
done
done
echo "Auto-updates configured for security plugins on all sites ✅"

Scenario 4: Enforce no auto-updates before a production freeze

# Freeze all auto-updates during a critical period
wp plugin auto-updates disable --all
wp theme auto-updates disable --all

Best Practices

  1. Do not enable auto-updates for WooCommerce or page builders on production — breaking changes can cause revenue loss.
  2. Always enable auto-updates for security plugins — delayed security patches create risk windows.
  3. Audit status regularly — settings can be changed by plugins or through wp-admin.
  4. Pair with a staging environment — even auto-updates should be tested before reaching production when possible.
  5. Document which plugins have auto-updates on — future maintainers need to know.

Troubleshooting

ProblemCauseFix
Plugin updated unexpectedlyAuto-updates were enabledDisable with wp plugin auto-updates disable SLUG
Auto-updates not runningWordPress background cron disabledCheck WP_DISABLE_CRON; ensure server cron is set up
Status shows no changeOld WP version (< 5.5)Auto-updates require WordPress 5.5+

Quick Reference

wp plugin auto-updates enable wordfence         # Enable for one
wp plugin auto-updates disable woocommerce # Disable for one
wp plugin auto-updates enable --all # Enable all
wp plugin auto-updates disable --all # Disable all
wp plugin auto-updates status --all # Audit all

Next Steps