WordPress staging site: test updates without the risk
· The AYT team · 5 min read

A WordPress staging site is a private copy of your site, usually on a subdomain such as staging.example.com, where you test updates, a new theme or a plugin before putting them on the live site. If something breaks on staging, visitors see nothing. The simplest way to create one is a single click in your hosting panel; otherwise, with a plugin or by hand.
When you need staging
Staging helps whenever a change could break the site and you don't want to find out from your customers:
- major updates: a major version of WordPress, WooCommerce or your page builder;
- a new theme or a redesign;
- a new plugin that changes the checkout, the menu or the link structure;
- moving to a new PHP version;
- code changes in your child theme.
For a small update of a simple plugin, a backup beforehand is usually enough.
How to create a staging site
You have four options, from simplest to most work.
| Option | How | Good for |
|---|---|---|
| from your host | a button in the panel copies the files and database to a subdomain | almost anyone; fastest |
| with a plugin | WP STAGING clones the site into a subfolder, for free | hosting without staging included |
| by hand | create a subdomain, copy the files, import the database, replace the addresses | people who want full control |
| local | the copy runs on your computer, with a local WordPress tool | development and testing offline |
With WP STAGING, the free version creates the copy, but publishing changes from staging to the live site ("push") is a Pro feature.
What to switch off on the staging site
An identical copy of the site does everything the original does, including things you don't want twice:
- Indexing. The copy must not show up in Google as a duplicate of the site. Tick "Discourage search engines from indexing this site" under Settings → Reading and, ideally, put a password on the subdomain.
- Email. A copied store can send real customers order or subscription emails. Stop email on staging or send it to a test address.
- Scheduled tasks (WP-Cron). Subscription renewals, product imports or ERP syncs would run twice.
- Payments. Put the payment gateway in test mode.
- Analytics. Remove the Google Analytics or Pixel code, so your tests don't show up in reports.
The steps for an update tested on staging
- Create (or refresh) the staging copy, so it matches today's live site.
- Check the browser's address bar to make sure you're on the staging address, not live.
- Make the updates or changes.
- Test what matters: the home page, a few posts, the contact form, login and, for a store, the cart, checkout and a test order.
- Look in the PHP error log for new warnings.
- If everything works, repeat the change on live or push staging over live.
The database problem when you push
While you work on staging, the live site carries on: it gets orders, comments, new users. If you push the staging database over live, all of that is lost, because live gets a copy from a few days ago.
You have three options, depending on what you changed:
- You only changed files (plugin and theme updates, code): push only the files. The live database stays as it is.
- You changed settings or content, on a site without orders: push everything, at a quiet time, after backing up live.
- You changed settings on an active store: redo the settings by hand on live, after testing them on staging. It's slower, but you don't lose a single order.
Either way, back up the live site right before you push. If something goes wrong, you can restore from the backup in minutes.
Frequently asked questions
Does staging affect my SEO?
Not if it's blocked from indexing. Without that, Google can find the copy and treat it as duplicate content. The tick under Settings → Reading plus a password on the subdomain takes care of it.
How long should I keep the staging site?
As long as you use it. An old copy no longer looks like the live site, so recreate it before each important test. Meanwhile it takes up space and a database in your account.
Can I have more than one staging copy?
Yes, if your host allows it. It helps when you test two unrelated things in parallel, for example a new theme and a WooCommerce update.
Staging on AYT hosting
On AYT's paid plans, you create a staging site from the WordPress Toolkit, on the site's Staging page, with the "Create staging" button. The copy goes on a subdomain, with the files and the database, and "Pull from live" refreshes it from the live site at any time. Staging sends no email, doesn't run WP-Cron and asks search engines not to index the copy.

When you're ready, you push staging to the live site ("Push to live") in one of three ways:
- "Everything": files and database. Posts, orders and users that appeared on live after the copy are replaced.
- "Files only": core, plugins, themes and newly uploaded files. The live database stays untouched.
- "Files and settings": like "Files only", plus the settings and plugin data changed on staging. Posts, orders and users on live stay live's.
Before pushing, the panel backs up the live site. For everyday updates, see also how to update WordPress without breaking the site. What each plan includes is on the WordPress hosting page.
