| 开发者 | rotosix |
|---|---|
| 更新时间 | 2026年12月3日 09:27 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.wp-config.php constants can turn single protections off.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.
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>.
wp clonemute status [--format=json] shows the state, why the site is or is not protected and the state of every protection.wp clonemute disarm removes every protection.wp clonemute production confirm records the site as the production site; wp clonemute production forget --host=<host> removes that record.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).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.
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.
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.
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.
By default everything is deleted: settings, log table and scheduled events. You can switch this off in the settings and export the settings first.
wp clonemute status, arm --host=<host>, disarm, production confirm and production forget --host=<host>, with --format=json. They make the same checks as the admin screens.