How to Update WordPress Plugins Safely
A safe routine for plugin updates, when to turn on auto-updates, and exactly what to do if an update breaks your site.
In short
- Back up your site, then update plugins from Plugins › Installed Plugins or Dashboard › Updates.
- Since WordPress 5.5 you can switch on automatic updates plugin by plugin; WordPress runs them twice a day and emails the site owner.
- Since WordPress 6.3, if a manual plugin or theme update fails, WordPress restores the version you had before.
- If an update causes a fatal error, WordPress emails the admin address a link to recovery mode, where you can deactivate the plugin.
Why should you keep plugins updated?
Plugin updates fix bugs, add features and, most importantly, close security holes. WordPress's own hardening guide puts it simply: make sure your plugins are always updated. Out-of-date plugins are one of the most common ways websites get broken into.
What should you do before updating?
- Take a backup of your files and database. See how to back up WordPress.
- Read the changelog on the plugin's page ("View version x details") for big changes.
- Check compatibility. The plugin's details show which WordPress version it has been tested up to.
- Use a staging copy for shops and busy sites if your host offers one.
How do you update a plugin?
- Go to Plugins › Installed Plugins. Plugins with an update show a notice underneath.
- Click update now in that notice. To update several, tick them and choose Update from the Bulk actions menu.
- Alternatively, go to Dashboard › Updates, tick the plugins and click Update Plugins.
- Check your site in a private browser window: the home page, a contact form and, for shops, the basket and checkout.
Should you turn on plugin auto-updates?
WordPress.org's documentation explains that since version 5.5, administrators can opt in to automatic updates plugin by plugin, using the Automatic updates column on the Plugins screen. By default WordPress runs auto-updates twice a day and sends the site owner an email listing what was updated.
A sensible approach:
- Turn on auto-updates for small, well-maintained plugins, and for security plugins.
- Update by hand after a backup for plugins your site depends on, such as shop, booking or membership plugins, so you can check them straight away.
What happens if an update fails or breaks your site?
WordPress has two safety nets:
- Rollback (WordPress 6.3 and later): if a manual plugin or theme update fails while installing, WordPress automatically restores the version you had, so the site stays up.
- Recovery mode (WordPress 5.2 and later): if a plugin causes a fatal error, visitors see a message that the site is having technical difficulties, and WordPress emails the admin address a secret link to recovery mode. Use it to log in and deactivate the faulty plugin.
No email? Rename the plugin's folder in /wp-content/plugins/ using FTP or your host's File Manager (for example, add -off to the end). WordPress then deactivates it. Restore your backup or wait for a fixed version. More in how to fix common WordPress errors.
Where to go next
Read how to update a theme, and print our safe update checklist.
Questions and answers
How often should I update WordPress plugins?
Check at least monthly, and install security updates as soon as you can. Since WordPress 5.5 you can switch on automatic updates for individual plugins; update important ones, such as shop plugins, by hand after a backup. Safe update routine.
Sources and further reading
Didn't find your answer?
Ask us anything about WordPress or the theme builder. We answer the most useful questions here, so others can benefit too.