Title: Close Up Shop
Author: Eliyahna
Published: <strong>2025 年 2 月 25 日</strong>
Last modified: 2026 年 6 月 1 日

---

搜索插件

![](https://ps.w.org/shop-closed/assets/banner-772x250.jpg?rev=3246174)

![](https://ps.w.org/shop-closed/assets/icon-256x256.jpg?rev=3246175)

# Close Up Shop

 作者：[Eliyahna](https://profiles.wordpress.org/eliyahna/)

[下载](https://downloads.wordpress.org/plugin/shop-closed.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/shop-closed/#description)
 * [评价](https://cn.wordpress.org/plugins/shop-closed/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/shop-closed/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/shop-closed/#developers)

 [支持](https://wordpress.org/support/plugin/shop-closed/)

## 描述

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.

### Short Description

Automatically redirects visitors to a “Shop Closed” page during scheduled closure
periods and shows a live reopening time powered by a shortcode that updates on every
page load.

### Support

Need help? Open a topic on the plugin support forum or contact the author via https://
eliyahna.com.

### Acknowledgements

Thanks to the WordPress & WooCommerce communities for their amazing tools and documentation.

## 安装

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.

## 常见问题

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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Close Up Shop」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Eliyahna ](https://profiles.wordpress.org/eliyahna/)

[帮助将「Close Up Shop」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/shop-closed)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/shop-closed/)，查看[SVN仓库](https://plugins.svn.wordpress.org/shop-closed/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/shop-closed/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/shop-closed/)。

## 更新日志

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

## 额外信息

 *  版本 **1.5**
 *  最后更新：**7 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/shop-closed/)
 * 标签
 * [closed](https://cn.wordpress.org/plugins/tags/closed/)[page redirect](https://cn.wordpress.org/plugins/tags/page-redirect/)
   [shop](https://cn.wordpress.org/plugins/tags/shop/)[woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/shop-closed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/shop-closed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/shop-closed/reviews/)

## 贡献者

 *   [ Eliyahna ](https://profiles.wordpress.org/eliyahna/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/shop-closed/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://eliyahna.com/donate/)