How to Manage Automatic Updates in WordPress (Core, Plugins and Themes)
1 free file at the end of this tutorial

On this page
Most hacked WordPress sites run outdated plugins or core. Automatic updates close those holes quickly, but a big update can occasionally break something. The answer isn't all or nothing; here is how to control updates sensibly.
Core updates
By default, WordPress installs minor and security releases automatically. Major versions can be enabled for auto-update from Dashboard > Updates. Or control it in wp-config.php:
// Minor (security) updates only - recommended default define( 'WP_AUTO_UPDATE_CORE', 'minor' ); // All core updates, including major versions define( 'WP_AUTO_UPDATE_CORE', true );
Plugin and theme auto-updates
- Go to Plugins > Installed Plugins.
- Click Enable auto-updates next to each plugin you trust.
- For themes, open Appearance > Themes, click a theme and choose Enable auto-updates.
What to auto-update and what to do manually
- Auto-update: small, well-maintained plugins (SEO, forms, security, SMTP).
- Update manually after a backup: page builders, WooCommerce and its extensions, membership plugins, and your main theme.
- Premium plugins need an active licence to update; keep licences current.
A safe update routine
- Take a backup (see free WordPress backups).
- Test big updates on a staging site first.
- Update one major plugin at a time and check key pages, forms and checkout.
- Read changelogs for major version jumps.
If an update breaks the site
Check the email WordPress sends; it often links to recovery mode. You can also deactivate the plugin by renaming its folder in File Manager, or restore your backup. See fixing a critical error.
The attached snippets include the update constants plus other wp-config.php hardening settings.
Download the files
Free to use in your own and client projects · no sign-up · tested before upload. Always try files on a staging site first and keep a backup.
-
wp-config.php and .htaccess security snippetswp-config-security-snippets.txt · 1 KB · v1.0Download wp-config.php and .htaccess security snippets (1 KB)
Download not working? Tell me and I'll fix it.
Frequently asked questions
Should I enable automatic updates?
Minor core security updates should always stay on. For plugins, enable auto-updates for well-maintained, simple plugins and update complex ones (page builders, WooCommerce) manually after a backup.
Where do I turn on plugin auto-updates?
In Plugins > Installed Plugins, click 'Enable auto-updates' next to each plugin.
What if an automatic update breaks my site?
WordPress emails you about failed updates and may roll back failed plugin updates. Otherwise restore a backup, or deactivate the plugin by renaming its folder.
How do I stop all automatic updates?
Adding define( 'AUTOMATIC_UPDATER_DISABLED', true ); to wp-config.php disables them, but this is not recommended because you miss security fixes.


