Linux 软件免费装
Banner图

Close Up Shop

开发者 Eliyahna
更新时间 2026年6月2日 02:12
PHP版本: 5.0 及以上
WordPress版本: 7.0
版权: GPL 2.0 or later
版权网址: 版权信息

标签

shop WooCommerce schedule maintenance-mode closed page redirect reopening

下载

1.2 1.4 1.5

详情介绍:

Close Up Shop lets WooCommerce store‑owners define any number of closure periods (for holidays, inventory counts, vacations, etc.). While the shop is closed, all store‑related pages (shop, product, cart, checkout, account) redirect to a dedicated Shop Closed page that displays your custom message and the exact date & time the shop will reopen. Version 1.4 introduces a real‑time [closeupshop_reopen_time] shortcode that is evaluated whenever the page is viewed, so the reopening information is never stale, even if you change the schedule later. Key Features Creates a Shop Closed page automatically on activation. Intuitive admin screen under Settings → Close Up Shop to add, remove, and reorder unlimited closure periods. One‑click Add / Remove rows (JavaScript enhanced, no page refresh). Live [closeupshop_reopen_time] shortcode – drop it anywhere to show the next reopening date & time using your WordPress date/time formats. Automatic redirection from WooCommerce pages while the shop is closed. Respects the site time‑zone set in Settings → General. Sends nocache_headers() and defines DONOTCACHEPAGE during redirects and on the Shop Closed page to prevent caching plugins from serving outdated content.

安装:

Upload the plugin folder to /wp-content/plugins/ or install through Plugins → Add New. Activate Close Up Shop. Visit Settings → Close Up Shop to add your closure periods and adjust the default message if desired.

升级注意事项:

1.5 Fixes a bug where changing or removing a closure period had no effect due to stale object cache data. Also fixes the admin redirect URL and missing "Settings saved" notice. Recommended for all users. 1.4 This update replaces the static placeholder with a live shortcode, fixes the Remove row bug in the admin screen, and improves caching behaviour. After updating, visit Settings → Close Up Shop and click Save to refresh your message.

常见问题:

How do I show the reopening time anywhere else on my site?

Use the [closeupshop_reopen_time] shortcode in posts, pages, widgets, or templates. It will output the next reopening date and time.

Can I set multiple closure periods?

Absolutely. Add as many periods as you need – they can even overlap. The plugin will pick the currently active period, or the nearest upcoming one if the shop is currently open.

What happens when a closure period ends?

As soon as the end time passes, the shop automatically reopens and customers can access your WooCommerce pages again without redirection.

Does the plugin respect WordPress time‑zone settings?

Yes. All scheduling uses the site time‑zone selected in Settings → General.

更新日志:

1.5 Fixed: Changing or replacing a closure period had no effect because persistent object caches (Redis, Memcached) were serving stale option data. The closed check and shortcode now read closure periods directly from the database, bypassing the object cache entirely. Saves also explicitly evict the cached value before and after writing. Fixed: After saving settings, the redirect pointed to admin.php instead of options-general.php, which is the correct parent for pages registered via add_options_page(). This caused the "Settings saved" notice to be lost on redirect. Fixed: Settings error notices were not persisted to a transient before the redirect, so they never appeared after the page reloaded. A set_transient() call now preserves them correctly. 1.4 Introduced [closeupshop_reopen_time] shortcode for real‑time reopening info (replaces former placeholder approach). Rewrote admin Add / Remove row JavaScript; fixed Remove button not working due to missing type="button". All date/time comparisons now use DateTimeImmutable in the site time‑zone for robustness. Added nocache_headers() and DONOTCACHEPAGE constants to prevent cached "Shop Closed" pages. Code clean‑up, documentation refresh, version bump. 1.3 Re‑architected period‑selection logic (chooses latest ending active period or earliest upcoming). Switched to short‑code driven message so reopening time updates without resaving settings. Added helper utilities and improved sanitisation. 1.2 Initial public release after renaming project to Close Up Shop.