Using the developer API

If you need some custom logic, you can use the public API exposed by the plugin. You can use the following calls throughout your WordPress website:

MBHIPRO()->is_open('location name')

Returns true if the location is currently open. False otherwise.

 

MBHIPRO()->is_closed('location name')

Returns true if the location is currently closed. False otherwise.

 

MBHIPRO()->get_opening_hours('location name')

Returns an array of objects containing the location’s opening hours.

 

MBHIPRO()->get_specials('location name')

Returns an array of objects containing the location’s special opening hours.

 

MBHIPRO()->get_vacations('location name')

Returns an array of objects containing the location’s vacations.