Title: WST Block Timer
Author: webtatsu
Published: <strong>2026 年 9 月 11 日</strong>
Last modified: 2026 年 9 月 11 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/wst-block-timer.svg)

# WST Block Timer

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

[下载](https://downloads.wordpress.org/plugin/wst-block-timer.1.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/wst-block-timer/)

## 描述

WST Block Timer adds a single container block. Put any blocks inside it and set 
a start and/or end date and time; the contents appear on the front end only during
that period. Before the start and after the end, the block outputs nothing.

Use it for time-limited announcements, seasonal banners, campaign notices, or any
content that should appear and disappear on a schedule without you editing the page
again.

#### Key features

 * One container block (“Block Timer”) that holds any inner blocks
 * Set a start, an end, or both — leave a side empty to leave it open-ended
 * For regular visitors, out-of-range content is left off the page
 * Optional preview: signed-in staff can see out-of-range content in a dashed box,
   to check it before it goes live
 * Choose who sees that preview: Administrators only, Editors and above, or Authors
   and above
 * Times are evaluated in your site’s timezone
 * While a preview is active, that page’s full-page cache is disabled so out-of-
   range content is not served to regular visitors
 * If WST Date Simulator (by the same author) is also active, both plugins use the
   same simulated time as “now”, so a scheduled display period can be previewed 
   together with scheduled posts

#### About permissions

 * Viewing the preview and changing the plugin’s settings use separate permission
   checks
 * Changing the settings always requires an Administrator (manage_options)
 * Who can view the preview is configurable on the settings screen (Editors and 
   above, by default)

#### Good to know

 * This is a presentational schedule, not access control. Hidden content still exists
   in the post and may be reachable through revisions, feeds, or the REST API. Do
   not use it to protect secret information.
 * Crossing the start or end time does not change a cached page until it is regenerated.
   Shorten your cache lifetime or exclude the affected pages if exact switch timing
   matters.
 * Deactivating the plugin stops the schedule. Content saved by this plugin is stored
   in a form that is usually not shown by the browser, but this is not a security
   measure.

## 屏幕截图

[⌊The Block Timer block in the editor, with start and end fields in the sidebar⌉⌊
The Block Timer block in the editor, with start and end fields in the sidebar⌉[

The Block Timer block in the editor, with start and end fields in the sidebar

[⌊Settings screen (preview toggle and preview permission)⌉⌊Settings screen (preview
toggle and preview permission)⌉[

Settings screen (preview toggle and preview permission)

[⌊The front-end marker shown to permitted signed-in users for out-of-range content⌉⌊
The front-end marker shown to permitted signed-in users for out-of-range content⌉[

The front-end marker shown to permitted signed-in users for out-of-range content

## 区块

该插件提供了 1 个区块.

 *   Block Timer A container block shown only between a start and end date/time,
   hidden automatically outside that window.

## 安装

 1. Upload the plugin files to `/wp-content/plugins/wst-block-timer`, or install the
    plugin through the “Plugins > Add New” screen in WordPress.
 2. Activate the plugin through the “Plugins” screen.
 3. In the editor, add the “Block Timer” block, place your content inside it, and set
    the start/end in the block sidebar.
 4. (Optional) Go to the “Block Timer” menu in wp-admin to turn on the preview of out-
    of-range content and choose who can see it.

## 常见问题

### What happens outside the window?

For regular visitors the block outputs nothing. When the preview option is enabled,
only signed-in users with the preview permission see the content, in a dashed box
labeled with the display period.

### Can I set only an end date?

Yes. Leave the start empty and the content is visible until the end. Leave the end
empty and it is visible from the start onward. Leave both empty and it is always
visible.

### What if the start is after the end?

The editor shows an error on the block. On the front end, regular visitors see nothing;
users with the preview permission see it flagged as an invalid setting.

### Which timezone is used?

Your site’s timezone, from Settings > General.

### Does it change the actual content or post status?

No. Nothing in the database is changed. While out of range, the inner blocks are
simply left off the front end.

### Does it work with full-page caching?

Yes. But a cached page stays frozen at whatever it showed when it was cached, until
the cache is refreshed: a block can fail to appear after its start time, or fail
to disappear after its end time. For pages where the switch time matters, shorten
the cache lifetime or exclude them from caching. Pages being previewed by a permitted
signed-in user are excluded automatically.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WST Block Timer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

「WST Block Timer」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wst-block-timer/contributors)
为本插件所做的贡献。

[帮助将「WST Block Timer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wst-block-timer)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 7.0 或更高版本 **
 *  已测试的最高版本为 **7.1.1**
 *  PHP 版本 ** 8.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wst-block-timer/) 和 [Japanese](https://ja.wordpress.org/plugins/wst-block-timer/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wst-block-timer)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[content](https://cn.wordpress.org/plugins/tags/content/)
   [editorial workflow](https://cn.wordpress.org/plugins/tags/editorial-workflow/)
   [schedule](https://cn.wordpress.org/plugins/tags/schedule/)[visibility](https://cn.wordpress.org/plugins/tags/visibility/)
 *  [高级视图](https://cn.wordpress.org/plugins/wst-block-timer/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/wst-block-timer/reviews/#new-post)

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

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wst-block-timer/)