| 开发者 | itboffins |
|---|---|
| 更新时间 | 2026年8月18日 23:48 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
itboffins-live-opening-hours folder to /wp-content/plugins/, or install through the Plugins screen.[iboh_opening_hours] shortcode to a page.The page table and notice bar use your saved schedule in the visitor's browser. That lets the open/closed message and today's row stay current without you editing the page.
Yes. If your site uses caching to stay fast, the opening-hours table and open/closed banner still update from the hours you set.
Your site's WordPress timezone (Settings -> General). If you use a named timezone, such as Europe/London, daylight saving is handled automatically.
Yes. Displayed hours support the wall-clock tokens G, H, g, h, i, s, a, and A, plus backslash-escaped literals. Other PHP date-format characters remain literal because a saved opening time is not a complete timestamp from which timezone- or instant-dependent tokens can be calculated reliably.
Yes. In Live Opening Hours, use the bank-holiday helper inside Public special dates & one-off changes. Choose England & Wales, Scotland, or Northern Ireland, pick the year, and add the standard dates as closed special dates. One-off public holidays can still be added manually.
Yes. Add more than one time range to a day, for example 09:00-12:00 and 13:00-17:00.
Yes. Set a closing time earlier than the opening time, for example 22:00-02:00.
Use the Live Opening Hours block in the editor, or paste one of these shortcodes into a page: [iboh_opening_hours show="table"], [iboh_opening_hours show="status"], or [iboh_opening_hours show="both"].
No. There is no external API and no tracking. Everything runs on your own site. To keep cached pages current, the saved hours, dates, labels, and public notes are included in the page data and evaluated in each visitor's browser. Do not put confidential information in a schedule note.
<style> tag into the enqueued stylesheet, gated by a small enqueued head script.[iboh_opening_hours] and the bootstrap class is IBOH_Plugin, so every public name carries the plugin prefix.init, so translated defaults no longer trigger the WordPress 6.7+ early-textdomain notice.itboffins-live-opening-hours text domain and package slug.