Skip to content

Hackkzy/timed-visibility-block

Repository files navigation

Timed Visibility Block

WordPress Requires 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.
  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

📝 License

GPL-2.0-or-later 🔗 GNU License

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

About

Control when your content shines. Perfect for announcements, promotions, and time-sensitive information!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published