Simply define your production url in settings and copy your site to your staging instance without fear.
If you host your site on managed host that provides instance, or if you run instance for self-hosted website, you may have found that WordPress and WooCommerce will send emails and process payments from the staging site.
Whenever you clone your production site to your staging site, you would need to complete number of steps to make your site safe for staging...
Instead, install this plugin production, set the URL, copy your site to and from staging.
The site won't send any emails except for the password reset email.
WooCommerce checkout page has message notifying the visitor they viewing the staging site..
Bank transfer, Cash on Delivery and Check are left enabled.
My client did something that started sending emails from the server for their membership site.
This plugin allowed me to kill the emails from sending and backtrack the issues caused before it got out of hand...
Interested in development.., check out SVN repository, or subscribe to the development log by RSS...
Read more