Business Hours Indicator Plugin
Display opening hours and if you're currently open/closed, with countdown to next opening. Show or hide content only when open/closed & more!
- Highly customizable shortcodes to display your opening times in any format
- Shortcodes to indicate if you are currently open or closed
- Alternate message when you’re almost opening or closing
- Shortcodes to display something only when you are open or closed
- Easily style everything
- 4 widgets (does the same as the shortcodes)
- Supports Vacations
- Supports ‘special dates’ with different opening times (e.g: holidays)
- Supports countdown until your next opening/closing time
- Supports multiple locations
- Developer API (more info below)
- Frontend translated in: Dutch, German, English, Greek, Spanish, Italian, French, Bulgarian, Swedish, Danish,
Slovakian, Slovenian, Lithuanian, Croatian, Russian, Czech, Norwegian, Finnish, Icelandic - beautiful & user-friendly settings screens for you, or your client, to work in
Check out a complete list of features below.
Quick links
Requirements
- PHP 7.0 or higher
- WordPress 3.7 or higher
General features
- Shortcode to display business hours
- Widget to display business hours
- Shortcode to display if you’re currently open/closed
- Widget to display if you’re currently open/closed
- Shortcode to display content only when you’re open
- Shortcode to display content only when you’re closed
- Choose your prefered time zone
- Display times in 12 or 24 hour format
- Enter multiple locations for more businesses (up to 3 in the free version)
- Include special hours such as holidays
- Include vacation hours
- Highlight the current day
- Frontend translated in: Dutch, German, English, Greek, Spanish, Catalan, Italian, French, Bulgarian, Swedish, Danish,
Slovakian, Slovenian, Lithuanian, Croatian, Russian, Czech, Norwegian, Finnish, Icelandic, Latvian, Hungarian.
Displaying opening times
- Show the opening hours in a table
- Show the opening hours inline
- Consolidate the output: group days with the same opening hours
- Show/hide holiday hours
- Show/hide vacation hours
- Highlight the current day
Currently open/closed Indication
- Edit the “we’re currently open” message
- Edit the “we’re currently closed” message
- Include the current time in the output
- Include the current day in the output
- Add an opening/closing soon warning like “hurry, we’re closing in 35 minutes”
Limitations
The free version has some limitations you should be aware of. Our pro version (features below) fixes those.
- The free version does not work with caching mechanisms.
- It’s not possible to add a break in opening hours.
- You can add up to 3 locations in the free version.
Developer API
Use the plugin anywhere in WordPress by using the following calls:
MBHILITE()->is_open('location name')
returns true if the location is currently open. False otherwise.MBHILITE()->is_closed('location name')
returns true if the location is currently closed. False otherwise.MBHILITE()->get_opening_hours('location name')
returns an array of objects containing the location’s opening hours.MBHILITE()->get_specials('location name')
returns an array of objects containing the location’s special opening hours.MBHILITE()->get_vacations('location name')
returns an array of objects containing the location’s vacations.
More documentation coming soon.
PRO FEATURES
- Supports caching
- SEO features
- Enter unlimited multiple locations for more businesses
- Multiple time slots/day for when you close at noon
- Woocommerce support: disable orders + hide “add to cart” buttons when you are closed.
- ‘Message builder’ allows you to add dynamic codes to build any message you like. A few examples:
- Today is March 8, we’re open from 9AM to 5PM.
- It’s 7:12PM, we’re closed. We open again on Thursday, in 7 hours and 45 minutes.
- Hurry, we’re closing in 13 minutes!
- ..And much more!
- Only show today’s opening times
- Seasonal hours
- Set how many minutes or hours in advance to show “opening/closing soon” message.
- Customize output with line breaks & separators
- Premium support
- Receive updates & bugfixes
- Show abbreviated days in outputs
- More flexibility
- Priority feauture requests
- And more..!
Find out more about the pro version here
Installation
Installing the Business Hours Indicator plugin is very easy:
- Install from the WordPress Dashboard > Plugin page
- Or manually download the plugin and extract to wp-content/plugins/
- Activate the plugin
- Go to WordPress Dashboard > Settings > Business Hours Indicator
- Enter your location, daily opening hours, and fiddle with more settings if you want
- Use the shortcode
[mbhi location="my location"]
to display the output on pages or posts - Or use the PHP code
do_shortcode('[mbhi location="my location"]')
to display the output anywhere in your theme
Screenshots
Various examples of what this plugin can do.
Settings screen.
Enter opening times for a location.
Example of how it could look like on the frontend.
FAQ
Changelog