Linux 软件免费装
Banner图

CloneMute Staging Safety for WooCommerce

开发者 rotosix
更新时间 2026年12月3日 09:27
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce staging noindex disable emails safe mode

下载

0.1.0 0.2.0

详情介绍:

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: 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.

安装:

  1. Upload the plugin and activate it. Nothing is blocked after activation.
  2. 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.
  3. 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.
WP-CLI Confirm a copy from your clone script right after the copy is made: wp clonemute arm --host=stg.example.com This is the same confirmation as in the admin, with the same safeguards: it is refused on hosts you listed or confirmed as production and when WP_ENVIRONMENT_TYPE is explicitly production. WP-CLI only sees a WP_ENVIRONMENT_TYPE defined in wp-config.php or set in its own environment: a value set only in the web server configuration (fastcgi_param, SetEnv, PHP-FPM env) cannot be checked, so arm warns when it sees none, and you should check the CloneMute page in the admin. --host is this site's address without the scheme, with the port and the sub-directory if there is one, exactly as wp clonemute status shows it. On a multisite network choose the site with --url=<site address>. Exit codes: 0 success (also when nothing had to change), 1 refused or failed, 2 saved as a staging site but no protection is active (for example because of CLONEMUTE_DISABLE_ALL). With --format=json the result or the error is one JSON document on standard output; messages go to standard error. Changes made with WP-CLI are marked "(WP-CLI)" in the event log. Without WP-CLI you can pre-confirm a clone with define( 'CLONEMUTE_ENV', 'staging' ); in wp-config.php of the copy. The same safeguards apply, the admin says when the constant is refused, and the protection cannot be removed while the constant is set. 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).

升级注意事项:

0.2.0 Adds WP-CLI commands to confirm a copy from a clone script. No setting changes. 0.1.0 First release.

常见问题:

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.

更新日志:

0.2.0 0.1.0