Most website problems customers notice were caused by a change someone made on purpose. A plugin update clashes with the theme, a new form breaks the checkout, or a redesign looks fine on a laptop and falls apart on a phone. The change itself was reasonable. The problem was making it directly on the live site, in front of customers, without trying it somewhere safe first.
That safe place is a staging site: a private copy of your website where changes can be tested before anyone outside the business sees them. For WordPress sites in particular, staging has become far easier to set up than it once was. This guide explains what a staging site is, how to use one well, and the common mistakes that cause trouble when changes move from staging to the live site.
What a staging site is, and what it is not
A staging site is a separate copy of your website, usually on the same hosting account or a similar server, that runs the same software, theme, plugins and content as the live site. You make and test changes there first. When everything works, the changes are applied to the live site, often called production.
It is different from a backup. A backup is a stored copy you hope never to need. A staging site is a working environment you use regularly. It is also different from a local development copy on a developer’s laptop, which is useful for building features but may not match the live server closely.
WordPress formally recognized these distinctions in version 5.5. Its July 2020 developer note, New wp_get_environment_type() function in WordPress 5.5, introduced a standard way for a site to identify itself as production, staging, development or local. By default a site reports production. The note asked hosts that support staging environments to set this value to staging on those copies, and asked plugin and theme developers to adjust their behavior appropriately.
In practice, that means well-built plugins can behave differently on a staging site, for example by not sending real emails or not connecting to live payment accounts. Not every plugin does, so it is still worth checking.
Why testing on the live site is risky
Making changes directly on a live site means customers become the testers. If something breaks, they see it first, and the business may only find out when a sale is lost or someone calls to complain.
NIST’s Guide to Enterprise Patch Management Planning, published in April 2022, frames updates as preventive maintenance and is candid about the trade-offs. It notes that testing a patch before deployment is intended to reduce operational risk by identifying problems before placing it into production. It also notes that installing a patch may cause side effects, and that patch installation can cause operational issues that may require uninstalling the patch, reverting to the previous version, or restoring from backup.
The guide is written for organizations managing many systems, but the logic applies to a single business website. Testing first lowers the chance of a public failure. It also takes time and still might miss problems, which is why staging works best alongside backups and a plan for undoing changes.
Which changes deserve a staging test
Not every edit needs staging. Fixing a typo in a blog post or swapping a photo is usually safe to do directly. Staging earns its keep for changes that could affect how the site works:
- Updating WordPress core, the theme or plugins, especially major versions.
- Installing a new plugin, particularly one that touches forms, payments, bookings or memberships.
- Changing the theme or making significant design changes.
- Updating the PHP version or other server settings.
- Adding custom code or scripts, including tracking and chat tools.
- Restructuring menus, page addresses or navigation.
A useful rule of thumb: if a change could stop customers from contacting you, booking or buying, test it on staging first.

Setting up a staging site
Many hosting companies now offer one-click staging, which copies the live site to a private address. If yours does, that is often the simplest option. Ask your host or developer how staging works on your plan, how often it can be refreshed and how changes are pushed to the live site. Good web hosting makes this straightforward rather than an afterthought.
Whatever method you use, a few precautions apply:
- Keep it private. Protect the staging site with a password or restrict access, so customers and search engines do not find a duplicate of your website. Many hosts do this automatically.
- Mark it clearly. Set the environment type to staging where possible, and use a visible banner or different admin color so nobody confuses it with the live site.
- Stop real-world side effects. Turn off or redirect outgoing emails, use payment gateways in test or sandbox mode, and disconnect live integrations such as accounting or inventory tools.
- Match the live server. Use the same PHP version and similar settings, so tests reflect real conditions.
Testing changes properly
Testing on staging only helps if someone actually checks the things that matter. Keep a short written checklist and run through it after every significant change:
- Load the home page and key service or product pages on a desktop and a phone.
- Submit each important form and confirm it behaves correctly.
- Walk through a booking or checkout using test payment details.
- Log in and out, and check any member or customer account areas.
- Look for layout problems, missing images and error messages.
- Check that page speed has not noticeably worsened.
The WordPress developer note makes a related point for developers using environment-specific behavior: care should be taken to test all the possible routes. For a business, the equivalent is testing the paths customers actually follow, not just whether the home page loads.
Decide who approves changes
Staging works best with a clear owner. Someone should decide which changes go through staging, run or review the checklist, and approve the move to the live site. In a small business, that might be the owner working with a developer or host. The important thing is that changes do not reach customers simply because nobody stopped them.
Agree on timing as well. Pushing changes on a Friday evening, just before a busy weekend, leaves little room to fix surprises.
Moving changes to the live site safely
The step from staging to live is where many problems happen. The key question is which direction data flows.
Website files, such as plugins, themes and code, can usually be copied from staging to live. The database is trickier. While you were testing, the live site may have received new orders, bookings, form entries, comments or customer accounts. Pushing the entire staging database over the live one can erase those. Ask your host or developer exactly what their push process overwrites before using it.
For many small sites, the safest approach is to use staging to confirm a change works, then repeat the same change on the live site during a quiet period, with a fresh backup taken just beforehand. For more complex sites, a developer may use tools that move only specific changes.
Plan for undoing a change, too. NIST’s guide describes reverting to a previous version or restoring from backup as normal parts of handling problematic patches. Know how you would roll back before you start. Write down the steps, confirm the backup completed, and decide in advance what result would make you reverse the change rather than keep troubleshooting on the live site.

A safety net, not a substitute
WordPress includes some protection when things go badly wrong. Its April 2019 note, Fatal Error Recovery Mode in 5.2, explained that when a fatal error occurs, the site shows visitors a message that it is experiencing technical difficulties and emails the administrator a link to a recovery mode. In recovery mode, the plugins or themes causing the error are paused for that administrator, so they can log in and deactivate or fix the problem.
That is valuable, but the same note is clear about its limits. Pausing happens only for the user in recovery mode. For everyone else, the site remains in a broken state until the issue has been fixed or mitigated. In other words, customers still see the error. Recovery mode helps you fix a problem faster; staging helps you avoid showing it to customers at all.
Keeping staging useful over time
A staging site that is months out of date can give misleading results, because it no longer matches the live site. Refresh it from the live site before testing significant changes, so you are working with current content, plugins and settings. Remember that copying live data to staging means customer information now exists in a second place, so keep access restricted and remove old copies you no longer need.
It also helps to record what was tested, when and by whom. A simple log turns staging from an occasional exercise into part of routine website maintenance.
Questions to ask before relying on staging
Staging features vary widely between hosts and setups, so a few direct questions save surprises later:
- Is staging included in our plan, and is it password protected by default?
- Does refreshing staging copy the full database, including customer data?
- When we push to live, are files, the database or both overwritten?
- Are outgoing emails blocked on staging automatically?
- Can staging run the same PHP version as the live site?
- How do we roll back if a pushed change causes problems?
Clear answers mean the process can be trusted. Vague answers mean someone should test the process itself, on a quiet day, before an important change depends on it.
When staging may be more than you need
For a very simple site that changes rarely, with no forms, bookings or sales, a full staging workflow may be more than the business needs. A recent backup and careful timing of updates can be enough. As soon as the site handles enquiries, appointments or payments, the case for staging becomes much stronger, because the cost of a broken change rises with every customer who encounters it.
Content work can still happen on the live site. Regular content updates such as new blog posts or revised service descriptions rarely need staging, as long as they do not involve new plugins, layouts or code.
The bottom line
A staging site lets you make mistakes in private, where they cost little. Use it for changes that could affect how customers contact you, book or buy; keep it private, clearly labeled and disconnected from real emails and payments; test the paths customers follow; and move changes to the live site carefully, without overwriting new orders or entries. Combined with backups and a plan for rolling back, staging turns risky changes into routine ones.
Sources
References for the factual guidance linked in this article.
- Make WordPress Core: New wp_get_environment_type() function in WordPress 5.5 — July 24, 2020, edited July 28 and August 28, 2020 (2020-07-24). https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/ (linked above; original dated source wording checked and bundled in evidence).
- Make WordPress Core: Fatal Error Recovery Mode in 5.2 — April 16, 2019 (2019-04-16). https://make.wordpress.org/core/2019/04/16/fatal-error-recovery-mode-in-5-2/ (linked above; original dated source wording checked and bundled in evidence).
- NIST: NIST SP 800-40 Rev. 4: Guide to Enterprise Patch Management Planning: Preventive Maintenance for Technology — April 2022 (2022-04). https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-40r4.pdf (linked above; original dated source wording checked and bundled in evidence).


