> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hostcloud.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Update WordPress, themes and plugins safely

> Keep your WordPress site secure with updates, without breaking it.

Updates fix security holes, so an out-of-date WordPress site is easier to hack. This guide shows you how to update WordPress, your theme and your plugins with little risk, and what to do if an update breaks something.

## Before you update

**1. Take a backup**

In cPanel, open **Backuply** and click **Backup Now**. Wait until it finishes. See [Take and restore backups](https://kb.hostcloud.in/cpanel/take-and-restore-backups.md). For big changes, test on a [staging site](https://kb.hostcloud.in/wordpress/create-a-staging-site.md) first.

**2. Pick a quiet time**

Update when few visitors are on your site, and when you have time to check it afterwards.

**3. Check your PHP version**

New versions of WordPress and plugins may need a newer PHP version. See [Change your PHP version](https://kb.hostcloud.in/cpanel/change-php-version.md).

## Update in the right order

In the WordPress dashboard, go to **Dashboard → Updates**. Update in this order:

| Order | What | Why |
| - | - | - |
| 1 | Plugins | Plugins are updated to work with the newest WordPress first |
| 2 | Themes | Same reason |
| 3 | WordPress itself | Usually safe once plugins and theme are current |

> [!TIP]
>
> On a busy or important site, update plugins **one at a time**, and open your site after each one. If something breaks, you know exactly which update caused it.

## After updating

* **Open your site** in a private (incognito) window and click through the main pages, the contact form and, for shops, the checkout.
* **Clear the cache.** If you use LiteSpeed Cache, click **Purge All** from the LiteSpeed Cache menu at the top of the WordPress dashboard, so visitors see the updated pages.

## If an update breaks your site

**1. Find the cause**

If you can still log in, deactivate the plugin you updated last. If you can't log in, see [Fix a white screen or 500 error](https://kb.hostcloud.in/wordpress/white-screen-and-500-errors.md).

**2. Restore the backup if needed**

Restore the backup you took with **Backuply**. Your site goes back to how it was before the update.

**3. Check for a fix**

Look on the plugin's page for a newer version or a known problem, and try the update again later.

## Keep up with updates

* **Turn on automatic updates** for small, trusted plugins from the **Plugins** page. Leave big plugins, such as your shop or page builder, on manual updates.
* **Delete plugins and themes you don't use.** Even deactivated ones can be hacked if they're out of date.
* **Only install plugins from trusted places,** such as the WordPress plugin directory or the developer's own site. "Free" copies of paid plugins often contain malware.

Think your site has already been hacked? See [Fix a hacked website](https://kb.hostcloud.in/troubleshooting/website-hacked-or-flagged-unsafe.md).

Still stuck? [Open a ticket](https://kb.hostcloud.in/support/open-a-ticket.md) with your domain name and what you updated.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.