| 开发者 | tropratik |
|---|---|
| 更新时间 | 2026年11月27日 18:09 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ directory, or install it through the WordPress Plugins screen.Yes. WooCommerce must be installed and active.
Log in to your WordPress admin. Browsing the admin counts too, but background requests (AJAX, Heartbeat, scheduled tasks) do not. Only users who receive the reminders can confirm: a user excluded from the reminders cannot.
By default all administrators and shop managers. A new administrator or shop manager receives them automatically. You can exclude users in the settings, but at least one person must remain: a user who is not excluded, or the backup contact. Only administrators can exclude administrators.
Adding to the cart, the classic and block checkout, payment of an existing order and the creation of orders by the REST API. The payment gateways are hidden at run time and any order creation is refused with the public message. Browsing the store and the admin stays possible.
No. Nothing is modified or deleted in the settings of WooCommerce or of your gateways. When the store reopens, the plugin simply stops filtering.
The state of the store is checked on the server for every purchase request (adding to the cart, checkout, payment, REST API), so a page kept in a cache cannot let an order through. A cached page can still show the previous public message for a while: if your cache plugin stores shop pages, empty it after a long closure or reopening, and keep the cart and checkout pages out of the cache (WooCommerce already asks for this).
Yes. While the store is closed, creating an order through the REST API (v1, v2 and v3, batch requests included) is refused with an HTTP 503 error and the code tropratik_sg_closed. Updating existing orders is not affected. An integration that must keep creating orders (for example an ERP or a marketplace import) can opt out with the tropratik_sg_allow_rest_order_creation filter:
add_filter( 'tropratik_sg_allow_rest_order_creation', '__return_true' );
The presence monitoring closes the store when nobody confirms. The vacation mode closes it on purpose, from a schedule or immediately until a date you choose, and you can end it early. The presence countdown is paused during the vacation and resumes where it stopped. Ending the vacation never reopens a store suspended by the presence monitoring: only a presence confirmation does.
English by default. Every text is translatable and translations are provided by the community on translate.wordpress.org. The e-mails are sent in the language of each recipient when a translation is available and that language is installed on the site, otherwise in the language of the site.
Yes, unless you set up a real cron job. Reminders and the suspension e-mail are sent by a check that runs every 15 minutes through WP-Cron, and WordPress only runs WP-Cron when a page of your site is loaded. On a site with no visitors the check, and therefore the e-mails, can be late. The store itself is closed on time, because the deadline is checked on every purchase request.
The plugin warns you on its settings page and in Tools > Site Health when the check has not run for more than an hour. To fix it, ask your host for a cron job that opens https://example.com/wp-cron.php every 5 minutes (or runs wp cron event run --due-now with WP-CLI), then add define( 'DISABLE_WP_CRON', true ); to wp-config.php so that WordPress stops starting WP-Cron on every page load.
Not in this version. One WordPress installation is one store.
The protection only exists while the plugin is active. If you deactivate it, no code of the plugin runs any more and the store accepts orders again, even if it was suspended or in vacation mode. Deleting the plugin removes its settings and scheduled tasks. To pause sales on purpose, use the vacation mode instead of deactivating the plugin.