Expire Content Block
Expire Content Block
Description
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
Installation
- Upload the plugin folder to
/wp-content/plugins/expire-content-block, or install via Plugin Upload. - Activate the plugin through the Plugins menu in WordPress.
- In the Gutenberg editor, search for Expire Content block.
- Add blocks inside it, set expiry date/time in the inspector panel.
- Choose whether to hide or replace the content after expiration.
Faq
Yes, it uses native Gutenberg APIs and works with any block-enabled theme.
Reviews
Changelog
1.0.0
- Initial release with:
- Expiry date & time selection
- Hide or replace content after expiry
- Editor preview and badges
- Server-side rendering