
內容簡介
LukaCodes Content Expiry Shortcode 外掛允許用戶設定內容的有效期限,並在到期後自動替換為過期訊息,適合用於限時優惠、臨時公告等情境,簡化內容管理流程。
【主要功能】
• 使用簡單的短碼來設定內容過期
• 根據日期和時間自動過期
• 可用於文章、頁面及 WooCommerce 商品描述
• 支援嵌套短碼內容
• 輕量化設計,易於使用
• 多語言支援
外掛標籤
開發者團隊
② 後台搜尋「LukaCodes Content Expiry Shortcode」→ 直接安裝(推薦)
原文外掛簡介
We created LukaCodes Content Expiry Shortcode for cases where we want to publish content for a limited period and let it expire automatically without having to come back and edit the page later.
With the [lcexp] shortcode, we can wrap any temporary content inside a date-based rule. Until the selected date and time, the content is shown normally. Once that time passes, the plugin replaces it with a clear expiry message.
This makes the plugin useful for many everyday WordPress tasks, such as:
limited-time offers
temporary announcements
event notices
holiday messages
launch updates
short-term promotional text
Instead of removing content manually after a campaign or announcement ends, we can set the expiry date in advance and let the plugin handle it for us.
How we use it
We place the shortcode around the content we want to display temporarily:
[lcexp "30-06-2026 23:59"]This content will stay visible until the selected date and time.[/lcexp]
Before the selected date and time:
the content inside the shortcode is displayed normally.
After the selected date and time:
the content is replaced automatically with the message:
This content is no longer available.
Accepted date formats
We can use the shortcode with the following formats:
DD-MM-YYYY HH:MM
DD-MM-YYYY
We also support slash-separated dates such as:
DD/MM/YYYY HH:MM
DD/MM/YYYY
Examples
[lcexp "30-06-2026 23:59"]This offer ends tonight.[/lcexp]
[lcexp "25-12-2026"]Holiday message[/lcexp]
[lcexp "18:30 15-08-2026"]Event reminder[/lcexp]
What we wanted to keep simple
We designed this plugin to stay lightweight and practical. We did not want to add unnecessary setup screens for something that can be handled directly inside the editor with a shortcode.
Features
simple shortcode-based usage
automatic content expiry by date and time
works in posts and pages
works in WooCommerce product descriptions and short descriptions
supports nested shortcode content through normal shortcode rendering
uses the WordPress site timezone
lightweight and easy to use
multilingual-ready
Premium
We also offer a Premium version at:
In the Premium version, we expand the experience with additional tools such as a visual Gutenberg workflow and faster content insertion options.
Third-Party Service
This plugin integrates with Freemius for optional telemetry, upgrade handling, and the deactivation feedback form.
Freemius is only connected after the site owner explicitly opts in. If the opt-in is declined, no telemetry is sent.
Service provider: Freemius
Website: https://freemius.com
Terms of service: https://freemius.com/terms/
Privacy policy: https://freemius.com/privacy/
When a site owner opts in, Freemius may collect basic diagnostic and site data such as the website URL, WordPress version, plugin version, PHP version, language, and activation/deactivation events. If the site owner submits the deactivation form, the selected reason and optional feedback are also sent.
