=== Time-Limited Content Access ===
Contributors: usamakhalid14
Tags: time, content visibility, conditional content, scheduled content, shortcode
Tested up to: 7.0
Stable tag: 1.0.1
License: GPL-2.0+
License URI: https://opensource.org/licenses/GPL-2.0
Text Domain: time-limited-content-access

Show or hide content based on a date/time range using a simple shortcode.

== Description ==

This plugin allows WordPress site owners to display or hide any content block using a `[timecoac_timed_content]` shortcode based on date/time conditions. It’s lightweight, no extra settings, and respects WordPress timezone.

It is:
- Lightweight (no settings screen)
- Easy to use

Useful for:
- Limited-time offers
- Event-specific announcements
- Scheduled content visibility

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/time-limited-content-access` directory, or install through the WordPress plugins screen directly.
2. Activate the plugin through the ‘Plugins’ screen in WordPress.
3. Use the `[timecoac_timed_content]` shortcode in your posts or pages.

== Usage ==

Example:
`[timecoac_timed_content start="2025-06-01 09:00" end="2025-06-15 18:00"]This content is time-limited[/timecoac_timed_content]`

== Frequently Asked Questions ==

= What time format should I use? =
Use this format: `YYYY-MM-DD HH:MM` in 24-hour format.

= What happens if the time format is invalid? =
If the time format is incorrect, the plugin will hide the content as a precaution. Make sure to use the correct format.

= Does the plugin use the WordPress timezone setting? =
Yes, the plugin uses the timezone defined in your WordPress settings under Settings → General.

= Can I use the shortcode multiple times on the same page? =
Yes, you can use the shortcode as many times as needed on a single post or page.

= Is this plugin compatible with page builders like Elementor? =
Yes. You can insert the shortcode inside Elementor’s Shortcode widget or any text area that supports shortcodes.

= Can I use this plugin to hide content permanently after a date? =
Yes. Simply set the end attribute to your target date/time. After that, the content will no longer display.

= Will the plugin affect website performance? =
No, it’s extremely lightweight and does not run any background processes. It only checks the date/time when the page is rendered.

= Does the plugin support Gutenberg blocks? =
Yes. You can insert the shortcode inside a Shortcode block in the Gutenberg editor without any issues.

= Can I schedule content across multiple time ranges? =
Currently, each shortcode supports a single start and end range. You can use multiple shortcodes if you need multiple time ranges on the same page.

== Screenshots ==

1. Screenshot 1: Demonstrates the shortcode in action, displaying scheduled content for a limited time.
2. Screenshot 2: Shows multiple instances of the shortcode used on a single post/page for events, offers, or announcements.
3. Screenshot 3: Displays the plugin’s tutorial/help section within the WordPress dashboard.

== Upgrade Notice ==

= 1.0.1 =
* Compatibility update for WordPress 7.0.

= 1.0 =
* Initial release.

== Changelog ==

= 1.0.1 =
* Compatibility update for WordPress 7.0.

= 1.0 =
* Initial release.
