| 开发者 | codefokus |
|---|---|
| 更新时间 | 2026年11月22日 07:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
OpeningHoursSpecification (JSON-LD) including closed days for search engines.[ohgh_opening_hours]
Attributes:
status="yes|no" – live status (default: yes)table="yes|no" – weekly hours (default: yes)closures="3" – number of upcoming closures, 0 hides the list (default: 3)design="classic|card|banner|minimal|compact|dark|elegant|outline|sign|tiles" – design (default: as set on the settings page)title="Opening hours" – optional titlegroup="yes|no" – group days with the same hours (default: no; always on for "compact")accent_color, open_color, closed_color – custom colors as hex values, e.g. open_color="#2e7d32"[ohgh_opening_hours design="card" title="Öffnungszeiten"][ohgh_opening_hours design="minimal" table="no" closures="0"][ohgh_opening_hours design="compact"]ohgh_holidays( array $holidays, int $year, string $state ) – add or remove holidays (e.g. local holidays such as the Augsburg Peace Festival).ohgh_schema_data( array $data ) – modify the JSON-LD.[ohgh_opening_hours] to a page.All public holidays that apply to an entire federal state. Holidays that only apply in some municipalities (Corpus Christi in parts of Saxony and Thuringia, Assumption Day in parts of Bavaria, Augsburg Peace Festival) are not included automatically – add them as a closure or via the ohgh_holidays filter.
Yes. The page contains the schedule for the next 30 days and the status is recalculated in the visitor's browser every minute, so a cached page still shows the correct status.
No. All holidays are calculated locally.
Not yet – planned for a future version.
Not in version 1.0. As a workaround, enter 18:00–23:59 and 00:00–02:00 on the following day.
The schema output is off by default. Only enable it if no other plugin outputs your opening hours.