=== LukaCodes Content Expiry Shortcode === Contributors: luka2013 Tags: shortcode, content expiry, hide content, expire, scheduled content Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 8.0 Stable tag: 1.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Automatically hide any post or page content after a set date and time using a simple shortcode — no manual editing required. == Description == Have you ever published a limited-time offer, an event announcement, or a seasonal promotion — and then forgotten to take it down? **LukaCodes Content Expiry Shortcode** solves this in the simplest way possible. Wrap your content with the `[lcexp]` shortcode, set a deadline, and it disappears automatically when the time comes. No reminders, no manual editing, no stress. **Usage:** `[lcexp "30-06-2026 23:59"]This offer ends June 30th![/lcexp]` Once the deadline passes, the content is automatically replaced with a clean expiry message. No broken layouts, no empty spaces. **Accepted date formats:** * `DD-MM-YYYY HH:MM` — expires at exact time * `DD-MM-YYYY` — expires at midnight **Free features:** * `[lcexp]` shortcode — works in any post, page, or widget * Date + time support — set it down to the minute * Clean expiry message shown after deadline * Works with any WordPress theme * Multilingual ready (English, Greek) **Premium features** — available at [lukacodes.com](https://lukacodes.com/ces-docs/): * Gutenberg block with visual editor and live status indicator * Toolbar button — select any text and set expiry like Bold or Italic * Sidebar date picker with active/expired preview == Installation == 1. Upload the `lukacodes-content-expiry-shortcode` folder to `/wp-content/plugins/`. 2. Activate the plugin through the **Plugins** menu in WordPress. 3. Use `[lcexp "DD-MM-YYYY HH:MM"]Your content here[/lcexp]` in any post or page. == Frequently Asked Questions == = What happens to my content after the expiry date? = The content is automatically replaced with: *"This content is no longer available."* = What timezone does the plugin use? = The plugin uses your WordPress site timezone. Go to **Settings → General → Timezone** to check or change it. = Does it work with the Classic Editor? = Yes — the shortcode works in both Classic Editor and Gutenberg. = Does it work with any theme? = Yes — the plugin is compatible with any WordPress theme. = What date format should I use? = Use `DD-MM-YYYY HH:MM` for an exact time, or `DD-MM-YYYY` to expire at midnight. Slash separators (`DD/MM/YYYY`) are also accepted. == Screenshots == 1. Classic Editor — shortcode in use 2. Frontend — active content with expiry date set 3. Frontend — content replaced after deadline == Changelog == = 1.0.0 = * Initial release. * Shortcode tag: `[lcexp]`. == Upgrade Notice == = 1.0.0 = Initial release.