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.

FAQ

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.

후기

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 평가 읽기

기여자 & 개발자

“Expire Content Block”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Expire Content Block”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.0

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