Description
You copied a live shop to test an update. A few hours later a customer receives an order email from the test site, a renewal task runs against a real payment method, or the copy shows up in Google. CloneMute is built for that moment.
CloneMute works with any way of copying a site: your host’s staging button, WP STAGING, InstaWP, a manual clone or a local development copy. It looks at several signals to suggest that a site is a copy, then asks you to confirm. Nothing is blocked until you confirm, and a site you confirm as production is never touched.
When you confirm that a site is a staging site, CloneMute:
- Outgoing mail: drops mail sent through
wp_mail()(WooCommerce orders, password resets, queued mail) or redirects it to a test inbox. Subjects get a[STAGING]prefix. Allow your own team domains. Blocked mail is logged without the message body and with masked recipients. - Payment gateways: removes every gateway except the offline ones (bank transfer, cheque, cash on delivery) from the classic and the block checkout, with a clear notice. Place test orders with an offline gateway.
- Scheduled tasks: pauses WP-Cron events and Action Scheduler queues. Pending tasks are kept, not deleted, and run again when you remove the protection. Core maintenance tasks keep running.
- External services: blocks requests made through the WordPress HTTP API to payment, mail and messaging services (Stripe, PayPal, WooPayments, Mailgun, SendGrid, Postmark, Mailchimp, MailPoet, Twilio and more). Other plugins can add their own hosts. You can allow hosts, and wordpress.org and your own site are never blocked.
- Search engines and visitors: adds noindex headers and a robots.txt that disallows everything. Optionally require a login for the whole site, with the exceptions you list.
- REST API: limits anonymous access to the REST API (products and content) on the copy.
- Safety net: if a staging database is later pushed to production, the protection switches itself off (the recorded host no longer matches) and a large alert asks you to check that real mail and payments work. One click removes all protections, and
wp-config.phpconstants can turn single protections off.
Before you enable anything CloneMute shows a read-only report of what the copy would do if nothing were blocked: pending scheduled actions by hook, configured payment gateways (never showing keys), customer emails that would be sent and external services found in your settings.
What CloneMute cannot do
CloneMute reduces the risk; it does not guarantee anything. It does not cover plugins that talk to a mail or payment service directly through their own SDK or cURL calls, server-level cron jobs, or external webhook subscriptions that already exist at the other end. If another plugin replaces wp_mail(), CloneMute tells you, because it may not see or change that mail.
Privacy
CloneMute does not contact any server, has no telemetry and loads no scripts or styles on the front end. Recipients in the log are masked by default (a***@example.com); you can choose to store complete addresses, in which case they are included in the WordPress personal data export and erase tools. Log entries are kept 14 days (up to 2000 entries) by default.
Not included
CloneMute does not create, clone or push sites, does not protect logins, and does not back up or roll back updates.
External services
CloneMute does not connect to any external service and sends no data anywhere. The host names in data/blocked-hosts.php (Stripe, PayPal, Mailgun, SendGrid, Twilio, graph.facebook.com, Slack, Zapier and others) are a block list: on a site you confirmed as staging, CloneMute stops requests that other plugins make to these hosts through the WordPress HTTP API. CloneMute itself does not send any request to them.
Installation
- Upload the plugin and activate it. Nothing is blocked after activation.
- On a copied site, open the CloneMute page, check the signals and the report, choose “This is a staging site” and type the host name to confirm.
- On a live site open the CloneMute page and choose “This is the new production site”. CloneMute blocks nothing either way, but other Rotosix plugins (for example the scheduled imports of CatalogRelay) pause their scheduled work until the site is confirmed as production.
To pre-confirm a clone in a script, define define( 'CLONEMUTE_ENV', 'staging' ); in wp-config.php of the copy. Safeguards still apply: the constant is refused on hosts you listed or confirmed as production and when WP_ENVIRONMENT_TYPE is explicitly production, and the admin says so.
Emergency switches for wp-config.php: CLONEMUTE_DISABLE_ALL, CLONEMUTE_DISABLE_MAIL, CLONEMUTE_DISABLE_PAYMENTS, CLONEMUTE_DISABLE_CRON, CLONEMUTE_DISABLE_HTTP, CLONEMUTE_DISABLE_GATE (login gate and REST limit).
FAQ
Will CloneMute block mail on my live shop?
No. A fresh install blocks nothing. Protection starts only after an administrator types the host name of a copy to confirm it, and it is bound to that host and installation: if the settings are moved to another host, or to another server with both a different path and a different database, nothing is blocked there and an alert is shown. Hosts you list as production domains can never be protected.
Do I need to deactivate it before going live?
If you push a staging database to production, CloneMute switches itself off on the new host and warns you. Deactivating the plugin removes every hook it added.
Does it work with WP STAGING, InstaWP or my host’s staging?
It works with any copy. When WP STAGING shows its own badge, CloneMute adds its information to that badge instead of showing a second one.
Guests cannot check out with the block checkout
The REST limit also answers the guest requests of the block checkout. Add the exception /wc/store/ in the settings or turn the REST limit off.
What happens to the data when I delete the plugin?
By default everything is deleted: settings, log table and scheduled events. You can switch this off in the settings and export the settings first.
Changelog
0.1.0
- First release: environment suggestions with explicit confirmation, mail, payment, scheduled task, outbound request, search engine and REST protections, read-only report, event log with privacy tools.
