How to update WordPress, themes, and plugins safely
To update WordPress safely, make a complete copy of the site first, update one item at a time in this order: WordPress, plugins, and themes, and test the main pages after each step. If something breaks, you will know exactly which update caused the problem and can go back to your copy.
Updating is your main line of defense: most WordPress intrusions exploit flaws in plugins and themes that already have a published fix. The goal of this routine is to update without taking the site down.
Why update
- Security. New versions fix known vulnerabilities. A plugin left on an old version is one of the most common entry points for attackers.
- Compatibility. New versions of PHP and WordPress require up-to-date plugins and themes.
- Performance and fixes. Many updates fix bugs and improve speed.
Postponing updates out of fear of breaking the site only increases the risk: the older the version, the bigger the jump and the greater the chance of conflicts.
Step 1: make a complete copy of the site
Before updating anything, have a copy you can restore:
- Files. Compress the site folder in the cPanel File Manager and download the
.zip, or use FTP. - Database. In phpMyAdmin, select the database, click Export, and download the
.sqlfile. - Check that both files downloaded in full, and keep them outside the server.
If your hosting makes automatic backups, do not skip your own copy: it is the one you know the location and date of.
Step 2: check what will be updated
In the WordPress dashboard, open Dashboard > Updates. Look at:
- the WordPress version available and the current one;
- which plugins and themes have updates;
- whether any plugin reports that it has not been tested with the new WordPress version.
Write down the current versions. If you need to roll back a specific plugin, knowing its previous version helps.
On important sites, such as online stores, read the release notes of the main plugins (on the plugin’s page in the official WordPress directory, in the changelog tab). They warn about changes that may affect your site.
Step 3: test on a copy if the site is critical
If the site sells, receives orders, or is essential to your business, the safest update is done first on a copy of the site (a testing environment):
- Create a subdomain, such as
test.yourdomain.com, and copy the files and the database to it; - Update and test there;
- If everything works, repeat the process on the live site.
This work requires adjusting the wp-config.php of the copy and preventing it from appearing in Google. If you have no experience with this, get in touch with us.
Step 4: update in the right order
Update one item at a time and open the site after each one. That way, if something breaks, the last item you updated is the cause.
- WordPress (core). In Dashboard > Updates, click Update Now.
- Plugins. Update them one at a time, leaving the most important ones (store, forms, cache, security) for last, after you have tested the site with the others.
- Themes. Update the active theme first and then the others installed. If you edited the theme’s files directly, the update will erase those changes. To customize safely, use a child theme.
Avoid bulk updates, selecting everything at once, on an important site. If the page goes down, you will not know who the culprit is.
Step 5: test what matters
After each step, or at least at the end, test:
| What to test | How |
|---|---|
| Homepage and inner pages | Open and navigate them, on computer and phone |
| WordPress dashboard | Log in and open posts and pages |
| Contact forms | Send a test and check that the email arrives |
| Online store | Add an item to the cart and place a test order through checkout |
| Menus, images, and pages built with a page builder | Check that the layout looks the same as before |
| Speed and cache | Clear the plugin and browser cache and check again |
If the site uses a cache, clear it after updating. The “problem” is often just the cache showing the old version. See What a caching plugin is for in WordPress.
If something breaks after the update
- Do not panic, and do not update anything else.
- Deactivate the last plugin you updated. If the dashboard does not open, deactivate it through the File Manager by renaming its folder in
wp-content/plugins. The step-by-step guide is in 500 error or white screen in WordPress. - If it was the theme, rename its folder in
wp-content/themesso WordPress falls back to a default theme. - If it was the WordPress core, or if you cannot identify the cause, restore the copy from step 1: the files and the database.
- Look for a plugin version that is compatible, or an alternative plugin, and try again.
Automatic updates: worth it?
WordPress automatically updates minor core releases, usually security fixes. Plugins and themes can be set to update automatically from the plugins list.
| Option | When it makes sense |
|---|---|
| Automatic | Simple blog or business sites with few plugins, and when you have frequent backups |
| Manual | Online stores, sites with many plugins or a custom theme, where every update needs testing |
Even with automatic updates, check the site from time to time and keep your copy up to date.
Habits that prevent problems
- Install only the plugins you use and delete the ones that are deactivated. See How to install a plugin in WordPress.
- Prefer plugins and themes from the official directory or from well-known developers, with recent updates.
- Avoid “cracked” versions of paid plugins and themes: they often contain malicious code. See How to use AI to remove viruses from a WordPress site.
- Set aside a fixed day each week or month for updates.
- Keep your PHP version at one that is supported by WordPress and by your plugins.
Frequently asked questions
What is the order for updating WordPress, plugins, and themes?
First the WordPress core, then the plugins, and finally the themes, one item at a time, opening the site after each update. That way, if something breaks, you know what caused it.
Do I need to back up before updating?
Yes, always. The copy of the files and the database is what lets you go back if an update breaks the site. Make one before each round of updates.
Can updating WordPress delete my content?
Generally not: posts, pages, and media are stored in the database and in the wp-content folder, which a core update does not delete. What can be lost are changes made directly to the theme’s or the core’s files, which is why you should use a child theme and not edit WordPress’s files.
Can I update everything at once?
On a simple site with a backup, it may work. On an important site, it is not recommended: if something breaks, it will be hard to find the cause. Update one item at a time.
The site broke after the update. Now what?
Deactivate the last plugin or theme you updated, either from the dashboard or by renaming its folder through the File Manager. If that does not solve it, restore the copy you made before the update.
How often should I update?
Security updates should be applied as soon as possible. For the rest, a weekly or biweekly routine works for most sites. The longer you wait, the higher the risk.
Can I leave automatic updates turned on?
On simple sites with a backup, yes. On online stores and sites with many plugins, prefer manual updates with testing, to avoid surprises.