You have a plugin update to test, a new theme to try, or a design change that could affect your whole website. Making that change directly on a live WordPress site is a risk you do not need to take. A WordPress staging site gives you a separate copy where you can test first and move approved changes to production later.
You can usually create one through your hosting dashboard. When that option is not available, a staging plugin can make a clone for you. Developers can also build a separate copy manually. This guide walks through all three methods and explains how to avoid the mistake that matters most: overwriting data your live site collected while you were testing.
What Is a WordPress Staging Site?
A staging site is a separate copy of your live WordPress website. It normally has its own URL, such as staging.example.com or example.com/staging, and contains a copy of the site’s WordPress files and database.
Your live website is often called production. It is the version visitors and customers use. The staging copy is where you can install updates, change a theme, test custom code, or check a redesign without exposing unfinished work to visitors.
Staging is not the same as a backup. A backup is a recovery copy you can restore after a problem. A staging site is a working test environment, and its data can become out of date as people continue using the live website.
Typical workflow: copy the live site, make and test changes on staging, back up production, then deploy only the changes you need.

Choose the Right Way to Create a Staging Site
There is no single method that fits every hosting plan. Start with your hosting provider’s staging tool if it is available. It is usually the simplest route because the host can manage the copy and its environment. Use a plugin when your hosting plan does not include staging. A manual clone is an option for developers who need direct control over the files, database, and server configuration.

- Hosting provider: Best for most site owners. Check whether your plan includes staging and whether it supports pushing selected files or database changes.
- Staging plugin: Useful when the host does not offer a staging feature. Check the plugin’s free and paid limits before relying on its deployment workflow.
- Manual clone: Best for experienced users who can create a subdomain, a separate database, and safely update WordPress URLs.
Method 1: Create a Staging Site Through Your Hosting Provider
Check your hosting account before installing another plugin. Many managed WordPress hosts and some cPanel-based providers include a staging option. The exact menu name varies, so look under your website’s management, WordPress tools, or developer tools section.
If you are still comparing providers, our guide to choosing the right WordPress hosting provider explains what to look for in a hosting plan.
Follow these steps
- Sign in to your hosting account and open the management panel for the correct website.
- Find the Staging, Clone, or WordPress Tools section. The label depends on your host.
- Select the option to create a new staging copy. Choose the suggested staging URL or subdomain if your host offers a choice.
- Wait for the copy process to finish. Larger sites can take longer because the host needs to copy both files and database tables.
- Open the staging URL and sign in. Confirm that the homepage, admin dashboard, media library, and important pages load correctly.
Before using the copy, confirm that your host has restricted access to it. Also check whether the staging tool copies email, payment, and scheduled-task settings from production. We cover those precautions below.
Method 2: Create a Staging Site With a WordPress Plugin
When your hosting plan does not include staging, a plugin can create a copy inside your WordPress installation. One option in the WordPress Plugin Directory is WP STAGING.
The plugin’s directory listing describes a free workflow for cloning a site into a subdirectory, such as example.com/staging-site, and restricting the clone to administrators. Its built-in push from staging to production is listed as a Pro feature. Check the current feature list before choosing a plugin based on a deployment feature.
Step 1: Install the staging plugin
- Log in to your WordPress dashboard.
- Go to Plugins → Add New Plugin.
- Search for WP STAGING.
- Check the plugin name and author, then click Install Now and Activate.
Step 2: Create the staging copy
- Open the staging plugin from the WordPress admin menu.
- Choose the option to create a new staging site or clone.
- Give the copy a clear name, such as
staging-site. - Review the files and database tables selected for copying. Keep the recommended defaults unless you understand why a particular item should be excluded.
- Start the cloning process and leave the browser tab open if the plugin asks you to monitor its progress.
Step 3: Open and verify the staging site
When cloning finishes, use the plugin’s staging login link. Check the front end and dashboard before making changes. If the copy uses a subdirectory URL, make sure it does not redirect visitors to the live domain.
Remember that a staging plugin runs on the resources available to your hosting account. If your website is large or your server has limited memory, ask your host about resource limits before starting a full clone.
Method 3: Create a Staging Site Manually (Advanced)
A manual staging copy gives you more control, but it also gives you more ways to make a mistake. Use this method only if you are comfortable working with a hosting control panel, database tools, and preferably SSH or WP-CLI.
- Create a subdomain such as
staging.example.comand point it to a separate document root. - Create a new database and database user for the staging copy. Do not connect the staging files to the production database.
- Copy the WordPress files from production to the staging document root, then export and import the database into the new database.
- Update the staging copy’s database credentials in its
wp-config.phpfile. - Use WP-CLI’s search-and-replace command to update the production URL to the staging URL. Start with a dry run and review the proposed changes. Do not run a plain SQL replacement on WordPress database values because serialized data needs special handling.
- Open the staging URL, sign in, and test the pages and admin area. Check the site’s permalink settings if URLs return 404 errors.
wp search-replace 'https://example.com' 'https://staging.example.com' --all-tables-with-prefix --dry-run
This command previews matching values; it does not apply the replacements while --dry-run is present. Read the output carefully before running the command again without that flag. If you are not sure which database tables belong to the site, stop and ask your host or developer to review them.
You can also tell WordPress that the copy is a staging environment. Add this constant to the staging site’s wp-config.php file, above the line that says “That’s all, stop editing!”:
define( 'WP_ENVIRONMENT_TYPE', 'staging' );
WordPress supports the environment values local, development, staging, and production. Set the constant on the staging copy only. Do not copy it back to the live site when deploying files.
Protect Your WordPress Staging Site Before Testing
A staging copy can contain the same customer details, email settings, payment credentials, and integrations as your live website. Treat it as a real website with real data, not as a harmless demo.

1. Restrict access with a password
Use your host’s password-protection feature, HTTP authentication, or the access-control feature supplied by your staging tool. Do not rely only on a hard-to-guess URL. A private staging site should not be accessible to ordinary visitors.
2. Discourage search engines from indexing it
On the staging copy, go to Settings → Reading and enable Discourage search engines from indexing this site, if the option is available. This asks search engines not to index the copy, but it does not block people from opening it. Keep password protection enabled as well. See the WordPress documentation for the Reading settings screen for details.
3. Prevent test emails and payments from reaching real customers
A clone may still send order notifications, password resets, newsletter messages, or form notifications. Configure a mail catcher or route test messages to a safe address. If the site uses WooCommerce or another payment integration, switch to sandbox credentials before placing test orders. Never run a test payment through a live gateway.
4. Review scheduled tasks and external integrations
Check scheduled events, webhooks, subscription services, CRM connections, analytics, and third-party APIs. Disable or redirect anything that could send real data or trigger an action on the production site. The WordPress Hosting Team’s staging guidance explains these side effects and the environment-type setting in more detail.
What Should You Test on the Staging Site?
Do not stop after checking that the homepage loads. Test the parts of the site that could be affected by the change you made. A useful checklist includes:
- Update WordPress core, themes, and plugins one at a time when you are investigating a compatibility issue.
- Open important pages on desktop and mobile, including menus, headers, footers, and navigation links.
- Test contact forms, search, login, registration, and user permissions.
- For an online store, test the cart and checkout with sandbox payment credentials.
- Check the PHP version and server settings against production. If you need to change the version in cPanel, see our guide to changing the PHP version in cPanel.
- Review error logs and run a speed check on important pages. Our guide on optimizing WordPress for speed and performance can help you review the basics.
If an update breaks the staging copy, troubleshoot it there first. You can use the same debugging approach as in our tutorial on fixing the critical error in WordPress. Do not copy a broken test environment over the live site.
How to Move Changes From Staging to Your Live Website
Deploying changes is where you need to be most careful. While you were testing, visitors may have placed orders, submitted forms, created accounts, or published comments on the live website. Those new records may not exist in the older staging database.
Before deploying, make a fresh backup of production and confirm that you know how to restore it. Then decide exactly what needs to move:
- For code or design changes: Prefer moving the updated theme, plugin, or selected files rather than replacing the entire live database.
- For content changes: Recreate or carefully transfer the approved pages and settings. Check whether new live content was added after the staging copy was created.
- For database changes: Identify which tables will be replaced and what records they contain. Do not push an old full database over a busy live store or membership site.
After deployment, open the live website in a private browser window. Check the homepage, important landing pages, forms, checkout, navigation, and user login. Clear the relevant page, object, and CDN caches if the changes are not visible. Finally, make sure the live site is no longer using staging-only passwords, sandbox payment credentials, or the staging environment type.
A staging-to-live button is convenient, but it does not remove the need to review what will be overwritten. For websites that receive orders, bookings, memberships, or form submissions, selective deployment is usually safer than a full database replacement.
Frequently Asked Questions
Can I create a WordPress staging site for free?
Yes. Some hosting providers include staging in their plans, and plugins such as WP STAGING offer free cloning features. However, advanced deployment or push-to-live tools may require a paid plan. Check the current feature list before starting.
Will a staging site affect my live website?
Creating a properly isolated copy should not change the live site. However, a staging copy can still send emails, trigger integrations, or use live payment credentials unless you disable or replace them. A careless deployment can also overwrite new production data.
Should I use a staging site for WooCommerce?
Yes, it is useful for testing theme changes, plugin updates, checkout layouts, and custom features. Use sandbox payment credentials and take extra care when deploying. A full database push can replace orders and customer records created on the live store after the staging copy was made.
Does discouraging search engines make a staging site private?
No. The Reading setting asks search engines not to index the site, but normal visitors can still open it. Use password protection or another access-control method to keep the staging copy private.
Can I delete the staging site after deploying?
Yes, once you have confirmed that the live site works and you no longer need the test copy. Keep any backups you need for recovery, then remove the staging copy through your host or staging plugin. Do not delete the production website or its database by mistake.
Final Thoughts
A staging site gives you room to test WordPress changes before visitors and customers see them. Start with your host’s staging tool, use a plugin when you need an alternative, and choose a manual clone only when you are comfortable managing the database and files yourself.
Keep the copy private, disable real-world integrations while testing, and back up production before deployment. Most importantly, move only the files and data your changes require. That extra check can save you from losing the orders, submissions, and content your live website collected while you worked.

Leave a Reply