AI Audit Schedule a Call
Updates & Care November 24, 2026

How to Create a WordPress Staging Site (and Use It Safely)

How to Create a WordPress Staging Site (and Use It Safely)
On this page
  1. What is the fast path to a safe WordPress staging site?
  2. Why do you need a backup before creating a WordPress staging site?
  3. What are the three ways to create a WordPress staging site?
  4. What should you test on a WordPress staging site?
  5. How do you push staging to live without losing orders or form entries?
  6. Do you always need a WordPress staging site?
  7. What does the evidence not tell you?
  8. Getting help with your WordPress staging site
  9. Frequently asked questions

A WordPress staging site is a private copy of your live site where you can test updates, code and settings before visitors see them. You can create one with a host’s staging tool, a plugin, or a manual subdomain clone. The risky part is pushing changes back, because a database push can overwrite orders and form entries that arrived on the live site after the copy was made.

This article walks through all three ways to create a staging site, what to test on it, and how to push staging to live without losing data. If you would rather have someone else run updates through staging for you, our Site Update Service covers that.

What is the fast path to a safe WordPress staging site?

  1. Back up the live site’s database and files before you do anything else.
  2. Create the staging copy with your host’s tool, a plugin, or a manual clone.
  3. Block search engines and visitors, and check that staging cannot send real emails or take real payments.
  4. Test full user journeys: forms, login, search, checkout and refunds.
  5. Push only what you changed, and protect live orders and form entries before any database push.

Each step is expanded below. If you only do one thing, take a backup first, because it is your safety net if the push goes wrong.

Five-step checklist for creating and using a WordPress staging site safely
The short version of a safe staging workflow.

Why do you need a backup before creating a WordPress staging site?

You need one because a push can overwrite the live site, and only a backup lets you undo that. The WordPress Advanced Administration Handbook says a WordPress site has two components to back up, “Database and Files”, and “You need both to be able to fully restore a typical WordPress site.”

The handbook suggests weekly backups for smaller sites and daily backups for high-activity sites, and says to back up the database “regularly, and always before an upgrade.” Hostinger’s tutorial also advises a full backup before publishing staging content. If you need to know how restoring works, see our guide to restoring WordPress backup files and the database. For tool options, see WordPress backup plugins compared.

What are the three ways to create a WordPress staging site?

You can use a host’s built-in tool, a WordPress staging plugin, or a manual copy on a subdomain. The table summarizes what each vendor’s documentation says.

MethodHow the copy is madeHow changes go liveWatch for
Host toolWordPress.com: Hosting Dashboard, Production drop-down, “+ Add staging site”Sync > “Push to Production”Plan requirements; database sync can erase newer orders
PluginWP Staging (free) clones the site into a subdirectory such as example.com/staging-sitePro-only in WP StagingFree version cannot push to live
ManualSubdomain, copied files, separate database, edited wp-config.phpCopy files and database back by handEasy to make URL and database mistakes

Host staging tools

This is the simplest route if your host offers it. WordPress.com says staging is available on its Business and Commerce plans, and that it “creates an exact replica of your live site, including any errors it has.” Gravity Forms’ documentation notes that hosts with one-click staging handle “the push-to-live process for you.” That convenience still needs care, as the push section below explains.

A WordPress staging plugin

A WordPress staging plugin helps when your host has no staging tool. According to the WordPress.org listing, which is written by the vendor, the free WP Staging plugin clones the production site into a subdirectory, adds no-index handling and login protection, and restricts access to administrators. The listing shows version 4.21.0, 100,000+ active installations and testing up to WordPress 7.1.4 (page last modified November 13, 2026). Pushing staging changes to production is Pro-only, as are migrating to another host or domain and cloning to a separate database.

The manual method

Pantheon lists five steps for the manual method:

  1. Create a subdomain with its own document root.
  2. Copy the WordPress files.
  3. Create and import a separate database.
  4. Update the copied wp-config.php with the staging database credentials.
  5. Replace production URLs with the staging URL.

Pantheon recommends WP-CLI search-replace for the last step, because a basic SQL find-and-replace can corrupt serialized settings. It also says the staging directory “should be password-protected.” Hostinger’s tutorial (March 2024, so possibly dated) adds that you can only import into an empty database. When copying staging files to live, it says to skip wp-config.php.

Moving a site by hand has many of the same pitfalls as a migration. Our comparison of migration plugins and manual migration covers them.

What should you test on a WordPress staging site?

Test anything that could break the site or cost you money. Gravity Forms’ documentation recommends testing on staging before updating Gravity Forms or any add-on, “especially a major version”, and before updating WordPress core, PHP or the theme, installing new plugins, or changing payment configuration. It notes that forms are transactional, so a failing checkout form or payment feed can cause lost orders or double charges.

Pantheon suggests running full user journeys: forms, login, search, checkout, refunds, and subscriptions where relevant. In our experience across more than 600 sites over 7 years, a dependent plugin or theme that does not support the latest PHP or WordPress version is the most common cause of layout or function problems after an update. Staging is where you find that out first. Our safe update checklist shows where staging fits in the routine.

Stop the copy from acting like the real site

A staging copy can behave like production in ways you do not want. Pantheon says “email, payment, analytics and scheduled-task behavior should be reviewed before testing.” It advises using payment sandboxes, suppressing customer emails, and reviewing copied webhooks, which can keep sending staging events to production services. Remember too that the copy includes any errors the live site already has.

How do you push staging to live without losing orders or form entries?

Do not push the database blindly. Push files only, or protect the live data first. WordPress.com warns that “syncing the database can result in permanent data loss”, for example an order placed on production after the staging copy was made would be erased. It also says syncing the database “replaces the user list on the destination site”. Pressable says its Data Transfer “will completely overwrite the filesystem and/or database on the destination site” and that the destination “could have newer transactions, such as customers and orders.”

The vendors do not agree on the fix, so the safe method depends on your tool:

  • WordPress.com: choose specific files and folders, and leave the separate “Database” checkbox off if you only changed code. It says you can restore from a backup.
  • Pressable: it says it is “not possible to sync specific database tables between Pressable sites.” It takes on-demand backups of both source and destination before the transfer.
  • WP Engine (WooCommerce guidance): put the site in maintenance mode, export the orders, products or customer information you want to keep from production, copy staging to production including the database, then import the exported data. For new posts or pages made on staging, it suggests Tools > Import/Export so they are not overwritten.
  • WP Staging: its HPOS guide says you can exclude the WooCommerce order tables when pushing so live orders stay intact. It also advises excluding the ActionScheduler tables to avoid duplicate scheduled actions such as recurring payments.

Which approach is safe depends on your tool, so read your own host’s documentation first.

Comparison of how four hosts and plugins protect live orders during a staging push
The right method depends on your tool, so check your host’s documentation.

What about form entries?

Form plugins store entries in database tables, so a database push can wipe them. In a 2022 Gravity Forms community thread, a staging deploy deleted all live form entries. A Gravity Forms employee replied that the deploy had migrated database tables, and advised excluding gf_entry, gf_entry_meta, gf_entry_notes and gf_draft_submissions. If a payment add-on is used, the reply also listed gf_addon_payment_callback and gf_addon_payment_transaction. That thread is anecdotal and older than 18 months, and it does not confirm the fix worked.

Do you always need a WordPress staging site?

No. Gravity Forms’ documentation says that for small content edits, “a site backup is enough.” Staging earns its keep for plugin, theme, PHP and core updates, payment changes, and anything that touches checkout or forms. For a typo fix, a current backup is the more practical safeguard.

What does the evidence not tell you?

Nearly all push-to-live guidance comes from hosts and plugin vendors, each with a commercial interest in its own tool. The WP Staging free listing, for example, is built around upsells such as Pro-only push to live. WordPress.org’s own pages cover backups but not staging workflows, and we found no official WordPress or WooCommerce page on pushing to live.

  • The table-exclusion lists (WP Staging’s HPOS tables, Gravity Forms’ gf_* tables) are vendor-specific and were not checked against WooCommerce’s own documentation. Exact table names depend on your HPOS settings and database prefix.
  • We found no WPForms-specific guidance on entries during a push.
  • No study we found measures how often staging pushes cause data loss.
  • Hostinger’s tutorial is from March 2024, so its tool details may have changed.

Getting help with your WordPress staging site

If staging feels like one more thing to get wrong, you can hand it off. Our Site Update Service is built for exactly this: updates tested before they reach your live site, with a check that everything works afterward. Ongoing plans are on our Website Care & Maintenance page, and our WordPress maintenance checklist shows what regular upkeep involves.

Frequently asked questions

Will pushing my staging site to live delete orders placed after I made the copy?

It can if you push the database. WordPress.com and Pressable both warn that overwriting the destination database can erase newer orders. Push files only, or follow your host’s method for protecting orders first.

Do I need a paid plugin to push staging to live?

With the WP Staging plugin, yes. The WordPress.org listing says pushing to production is Pro-only. Some hosts include push-to-live in their own staging tools, such as WordPress.com on Business and Commerce plans.

How do I keep search engines out of a staging site?

Use login or password protection and no-index handling. The free WP Staging plugin adds both, and Pantheon says a manual staging directory should be password-protected.

Can staging send real emails or take real payments?

It can if left unchecked. Pantheon advises reviewing email, payment, analytics and scheduled-task behavior before testing, using payment sandboxes, suppressing customer emails, and reviewing copied webhooks.

Can I push only some changes to live?

Often yes, but it depends on the tool. WordPress.com lets you pick specific files and folders, while Pressable says table-level database sync is not possible.

Sources