
外掛標籤
開發者團隊
② 後台搜尋「codefokus Opening Hours with German Public Holidays」→ 直接安裝(推薦)
原文外掛簡介
Most opening hours plugins show “Open” on Easter Monday or All Saints’ Day, unless you enter every holiday by hand – every year. This plugin calculates the public holidays of all 16 German federal states itself and shows the correct status automatically:
“Open now · until 6:00 pm” / “Closing soon” / “Closed now · opens tomorrow at 8:00 am”
“Closed today (All Saints’ Day) · opens tomorrow at 9:00 am”
Deutsch
Öffnungszeiten mit Live-Status („Jetzt geöffnet · bis 18 Uhr“), die die gesetzlichen Feiertage deines Bundeslands automatisch kennen – lokal berechnet, ohne externe API. Deutsche Übersetzungen werden über translate.wordpress.org bereitgestellt.
Languages
The plugin is fully translatable. German translations are provided via translate.wordpress.org – contributions in any language are welcome.
Features
Public holidays for all 16 federal states, including movable holidays (Easter, Ascension, Whit Monday, Corpus Christi) and special cases such as Day of Repentance and Prayer (Saxony), International Women’s Day (Berlin, Mecklenburg-Western Pomerania), World Children’s Day (Thuringia) and Reformation Day.
10 designs: Classic, Card, Banner, Minimal, Compact (for sidebars and footers), Dark, Elegant (for restaurants and cafés), Outline, Door sign and Tiles – with live preview on the settings page.
Own title, custom colors for accent, “open” and “closed”, and the block editor’s color, spacing and font size options.
Group days with the same hours (“Mon – Fri 9:00 – 17:00”).
Up to two time slots per day (e.g. lunch break).
Optional: closed on Christmas Eve and New Year’s Eve.
Closures and company holidays as date ranges.
List of upcoming closures – holidays are only listed if you would otherwise be open that day.
Live status that keeps working with page caching: the status is updated in the browser every minute.
Block for the block editor and a shortcode for classic editor, widgets and page builders.
Optional schema.org OpeningHoursSpecification (JSON-LD) including closed days for search engines.
Preview of all calculated holidays on the settings page, so you can check them.
No external requests, no tracking, no cookies – GDPR friendly.
Shortcode
[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 title
group="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"
Examples:
Card with title: [ohgh_opening_hours design="card" title="Öffnungszeiten"]
Status only, e.g. for the header: [ohgh_opening_hours design="minimal" table="no" closures="0"]
Footer: [ohgh_opening_hours design="compact"]
For developers
Filter ohgh_holidays( array $holidays, int $year, string $state ) – add or remove holidays (e.g. local holidays such as the Augsburg Peace Festival).
Filter ohgh_schema_data( array $data ) – modify the JSON-LD.
Developed by codefokus.
