Linux 软件免费装
Banner图

codefokus Opening Hours with German Public Holidays

开发者 codefokus
更新时间 2026年11月22日 07:04
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

schema opening hours business hours holidays germany

下载

1.0.1 1.1.0 1.0.0

详情介绍:

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: 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 Shortcode [ohgh_opening_hours] Attributes: Examples: For developers Developed by codefokus.

安装:

  1. Install and activate the plugin.
  2. Go to Settings → Opening Hours, choose your federal state and enter your hours.
  3. Make sure your timezone under Settings → General is set to "Berlin".
  4. Add the block "Opening Hours (German Holidays)" or the shortcode [ohgh_opening_hours] to a page.

屏幕截图:

  • Public holidays of your federal state are calculated automatically, e.g. Corpus Christi in Bavaria.
  • Settings page: federal state, weekly hours with lunch break, holiday options and holiday preview.

常见问题:

Which holidays are included?

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.

Does the status work with caching plugins?

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.

Does the plugin connect to external services?

No. All holidays are calculated locally.

Can I use it for Austria or Switzerland?

Not yet – planned for a future version.

Do you support opening hours past midnight (e.g. 6 pm – 2 am)?

Not in version 1.0. As a workaround, enter 18:00–23:59 and 00:00–02:00 on the following day.

I already use an SEO plugin with schema data.

The schema output is off by default. Only enable it if no other plugin outputs your opening hours.

更新日志:

1.1.0 1.0.1 1.0.0