Title: Expire Content Block
Author: zellerpure
Published: <strong>2026 年 1 月 15 日</strong>
Last modified: 2026 年 1 月 15 日

---

搜索插件

![](https://ps.w.org/expire-content-block/assets/banner-772x250.png?rev=3440432)

![](https://ps.w.org/expire-content-block/assets/icon.svg?rev=3440432)

# Expire Content Block

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

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

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

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

## 描述

**Expire Content Block** is a simple but powerful Gutenberg block that lets you 
schedule content expiration — without shortcodes, without coding, and with live 
visual previews while editing.

Place any blocks inside it (images, text, buttons, forms, anything), set an expiry
date and time…
 After that moment, the content will **automatically be hidden** 
or **replaced with a custom message**.

Perfect for:
 – Limited-time promotions – Event registration closing – Temporary
announcements – Holiday notices – Launch campaigns – Membership or course content
phases

### Key Features

 * 100% native Gutenberg block (no shortcode mess)
 * Add any blocks inside using InnerBlocks
 * Choose expiry date & time via DateTimePicker
 * Define behavior:
    - **Hide content after expiry**
    - **Replace content with a custom message**
 * Editor preview mode shows how expired content will appear
 * Server-side rendering for accurate scheduling
 * Lightweight and fast — zero frontend JS required
 * Safe content sanitization with `wp_kses_post()`

### Why this plugin?

Most “timed content” plugins rely on shortcodes or old TinyMCE dialogs.
 Expire 
Content Block brings the experience to **modern block editor standards**, with intuitive
UI and visual feedback.

### Future PRO Features (coming soon)

 * Show content _between_ specific dates
 * Multiple expiration rules per block
 * WooCommerce-based expiration triggers
 * Geolocation + time-based conditions
 * Replace with saved block patterns or templates
 * Analytics: how many times the block was shown before expiry

## 区块

该插件提供了 1 个区块.

 *   Expire Content Automatically hide or replace inner content after a specific
   date/time.

## 安装

 1. Upload the plugin folder to `/wp-content/plugins/expire-content-block`, or install
    via Plugin Upload.
 2. Activate the plugin through the _Plugins_ menu in WordPress.
 3. In the Gutenberg editor, search for **Expire Content** block.
 4. Add blocks inside it, set expiry date/time in the inspector panel.
 5. Choose whether to hide or replace the content after expiration.

## 常见问题

### Does this block work with any theme?

Yes, it uses native Gutenberg APIs and works with any block-enabled theme.

### Will the content be hidden exactly at the specified time?

Yes. The expiration is processed on the server using WordPress timezone and server-
side rendering.

### Can I nest any type of block inside it?

Yes. Text, images, buttons, videos, forms — anything Gutenberg supports.

### Does it use JavaScript on the frontend?

No. The expiration logic is fully server-side for accuracy and performance.

### What happens if no expiry date is set?

The content will behave normally and remain visible.

### Is a PRO version planned?

Yes — with time ranges, WooCommerce triggers, geolocation rules, templates, analytics
and more.

## 评价

![](https://secure.gravatar.com/avatar/9576febeb86b6b0b80dc08d58c48aaab2ae427fa827724e314c90dc6defa8450?
s=60&d=retro&r=g)

### 󠀁[Lightweight and Just Works](https://wordpress.org/support/topic/lightweight-and-just-works-2/)󠁿

 [gabbygirl](https://profiles.wordpress.org/peggyrichardson/) 2026 年 2 月 27 日

Lightweight, and does exactly what it says it will. No shortcodes: it is a non-spacing
block, under which you can apparently nest virtually anything: entire row layouts
and sections, right down to individual lines of text. Perfect for short-term specials,
event announcements, FOMO sales, etc. Because it avoids the use of shortcodes, works
beautifully for clients who are not as techy. Clear date picker. No nonsense. Smart.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/expire-content-block/reviews/)

## 贡献者及开发者

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

贡献者

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

[帮助将「Expire Content Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/expire-content-block)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release with:
    - Expiry date & time selection
    - Hide or replace content after expiry
    - Editor preview and badges
    - Server-side rendering

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**5 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/expire-content-block/)
 * 标签
 * [block](https://cn.wordpress.org/plugins/tags/block/)[expire](https://cn.wordpress.org/plugins/tags/expire/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[schedule](https://cn.wordpress.org/plugins/tags/schedule/)
   [timed content](https://cn.wordpress.org/plugins/tags/timed-content/)
 *  [高级视图](https://cn.wordpress.org/plugins/expire-content-block/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/expire-content-block/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/expire-content-block/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/expire-content-block/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/expire-content-block/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/expire-content-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/expire-content-block/reviews/#new-post)

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

## 贡献者

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

## 支持

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

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