WP Manifestindependent plugin directory
manifest / editor / opening-hours-block

Opening Hours Block

A Gutenberg block to set and display business opening hours.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/erikyo/opening-hours-block/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

🕒 Opening Hours – WordPress Gutenberg Block

Opening Hours is a custom Gutenberg block that allows you to easily display and manage the opening hours of a business from the WordPress editor.


✨ Features

  • Define opening and closing times for each day of the week
  • Support for two time slots per day (e.g. morning and afternoon)
  • Option to mark days or individual time slots as closed
  • Toggle between "Today" or "Full Week" display modes
  • Automatically highlight the current day
  • Optionally show when the store will open next (e.g. "Opens Tuesday in 1 day and 3 hours")

⚙️ How It Works

From the block settings sidebar, you can:

  • Set the view mode (Today / Week)
  • Enter the opening hours for each day using native time inputs
  • Mark individual time slots or entire days as closed
  • Define default fallback times

On the frontend, the block displays the current or weekly schedule dynamically, including a helpful notice for the next opening time if the store is currently closed.


📦 Installation

  1. Clone or download this repository.
  2. Place it in your wp-content/plugins/ directory.
  3. Activate the plugin from the WordPress dashboard.

🧩 Requirements

  • WordPress 6.0+
  • Gutenberg editor enabled (standard in modern WordPress)

📄 License

MIT


Contributions are welcome. Feel free to fork the project or open issues!