Skip to content

Update WordPress, themes and plugins without breaking your site

· The AYT team · 5 min read

Man typing on a laptop at a wooden table, with a phone and notebook beside it

To update WordPress, themes and plugins without breaking your site, make a backup first, update one thing at a time rather than everything at once, and check the site after each step. Big updates (a major version of WordPress, WooCommerce or your page builder) you test on a staging copy first. If something still breaks, you know exactly which update it was and can roll it back from the backup.

What kinds of updates there are

Not every update carries the same risk:

Update Example Risk
minor WordPress version 7.1.4 → 7.1.5 low; fixes and security, installed automatically by default
major WordPress version 7.1 → 7.2 medium; new features, old plugins may have problems
plugin, small version 2.3.1 → 2.3.2 low
plugin, big version WooCommerce, Elementor, an SEO plugin with a new major version medium to high
theme updating the parent theme low, if your changes are in a child theme
translations language files very low

The PHP version is a separate update, made from your hosting rather than from WordPress. The steps are in the article on changing the PHP version.

Why you shouldn't put updates off

Many hacked WordPress sites are attacked through a plugin or theme with a vulnerability its author has already fixed. The longer you wait, the more updates pile up, and the harder it is to tell which one broke something. A weekly rhythm is a good rule for most sites.

Before you update

  1. Make a full backup: files and database. See what a WordPress backup contains.
  2. For big updates, read the plugin's changelog. If it says the new version needs a newer PHP or WordPress, sort that out first.
  3. Pick a low-traffic moment. For a store, not in the middle of a campaign.
  4. Check that your theme changes are in a child theme. If you edited the parent theme's files directly, the update wipes them.
  5. Do big updates on a staging site first.

The steps of a safe update

  1. In wp-admin, open Dashboard → Updates and look at the list.
  2. Update plugins one at a time, starting with the small ones. Leave the big ones (WooCommerce, the page builder) for last.
  3. After each important plugin, open the site in a private window and check the home page and an inner page.
  4. Update the theme.
  5. Update WordPress, if there's a new version. For a major version you can wait a few days for the first maintenance release (for example x.y.1), so plugin authors have time to catch up.
  6. Test what brings in money or leads: the contact form, login and, for a store, the cart, checkout and a test order.
  7. Clear the page cache and check again.

If you have 20 plugins with updates, you don't need to check the site 20 times. Group the small plugins (3–4 at a time) and check after each group. The big plugins still go one at a time.

Automatic updates: what to leave on auto

Since WordPress 5.5, every plugin and every theme has a link in the plugins list to enable automatic updates. Minor WordPress versions install automatically anyway.

Good candidates for automatic updates:

  • small, well-maintained plugins that do one thing;
  • security plugins, where speed matters;
  • translations.

By hand, with a backup first:

  • WooCommerce and its payment and shipping extensions;
  • your page builder (Elementor, Divi and others);
  • plugins that change the database when they update (membership, courses, forms with lots of data).

Since WordPress 6.6, if an automatic plugin update causes a fatal error on the home page, WordPress undoes it and goes back to the previous version. This only catches fatal errors. A checkout that stopped working or a broken layout goes unnoticed.

If an update broke the site

Blank screen or 500 error

WordPress usually emails the administrator a "recovery mode" link, which lets you into wp-admin to deactivate the plugin at fault. If the email doesn't come, deactivate the plugin through the files: in the File Manager or over FTP, rename its folder in wp-content/plugins/. The full guide is in the article on the WordPress 500 error.

The site works, but something looks or behaves wrong

Go back to the plugin's previous version. On its WordPress.org page, under "Advanced View", you'll find older versions; download the archive, deactivate and delete the current plugin and upload the old one. Then tell the plugin's author in its support forum.

You don't know what broke

Restore the backup from before the updates and redo the updates one at a time, on staging. The steps are in how to restore WordPress from a backup.

Plugins you can no longer update

A plugin with no updates for over a year, or one removed from the WordPress.org directory, is a risk even if it still works. Find an alternative and replace it. The same goes for "nulled" plugins and themes (pirated premium versions): they get no updates and often come with malicious code. If you found something like that on your site, read what to do with a hacked WordPress site.

Updates on AYT hosting

On AYT's paid plans, the panel updates WordPress, themes and plugins after a backup, and if an update affects the site, we go back to the previous version. In the WordPress Toolkit you switch automatic updates on or off for each plugin and theme, and you can update all of the account's sites at once.

The Plugins tab in the WordPress Toolkit, with automatic updates

For big updates, you create a staging copy from the same panel, test, and then push to live. See what each plan includes on the WordPress hosting page.

More articles

All articles