# Timed Visibility Block

[![WordPress](https://img.shields.io/badge/WordPress-6.6+-informational?logo=WordPress&style=flat&logoColor=ffffff&color=3858e9&labelColor=3858e9)](https://wordpress.org/download/releases/6-6/)
[![Requires PHP](https://img.shields.io/badge/PHP%207.4%2B-4f5b93?style=flat&logo=php&logoColor=white)](https://www.php.net/releases/7_4_0.php)

Control when your content shines — perfect for time-sensitive promotions and special events!

## ✨ Features

⏳ **Date-Time Range Visibility:** Show or hide content between a start and end date-time  
🔄 **Daily Schedule Mode:** Repeat visibility daily between a set time range (e.g., 9:00 AM to 5:00 PM every day)  
👁️‍🗨️ **Show/Hide Mode:** Choose to show or hide content during the selected schedule (supports inverted logic)  
💬 **Fallback Message:** Display a custom message (e.g., “This content is no longer available”) when content is hidden  
🚫 **Hidden Completely:** Content is completely removed from the DOM when hidden

## 🛠️ Installation

### 🔌 From WordPress Plugin Directory

1. Go to **Plugins > Add New** in your WordPress admin.  
2. Search for **Timed Visibility Block**.  
3. Click **Install Now** and then **Activate**.

### 📥 Manual Installation

1. Download the latest `.zip` from the **[Releases](https://github.com/Hackkzy/timed-visibility-block/releases)**.  
2. Upload it via **Plugins > Add New > Upload Plugin**.  
3. Activate the plugin in **Plugins > Installed Plugins**.

## 🚀 Usage

1. Open the **WordPress Block Editor (Gutenberg)**.  
2. Add the **Timed Visibility Block** wrapper to your post or page.  
3. Insert any blocks inside it.  
4. Configure your date/time range, daily schedule, and show/hide mode in the block sidebar.  
5. Optionally, set a fallback message to display when the content is hidden.

## 📜 Changelog

### 1.0.0

- Initial release

## 🤝 Contributing

Want to improve Timed Visibility Block? Feel free to fork, submit issues, or contribute!

📩 **Feedback & Support** → Open an [Issue](https://github.com/Hackkzy/timed-visibility-block/issues)

## 📝 License

GPL-2.0-or-later [🔗 GNU License](https://www.gnu.org/licenses/gpl-2.0.html)

🌟 **Enjoying Timed Visibility Block?** Consider giving it a ⭐ on GitHub! 🚀
