| 开发者 | bitkit |
|---|---|
| 更新时间 | 2025年12月12日 18:07 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
openingHoursSpecification and special opening hours to help search engines display correct business hours.LocalBusiness with weekly and special opening hours.opening-hours-holidays to /wp-content/plugins/ or install it via the WordPress plugin installer.The free version is intentionally kept simple and manages one global set of opening hours per site.\ Support for multiple locations (each with its own timetable, shortcodes and JSON-LD) is planned for a separate Pro add-on.
By default the plugin outputs JSON-LD using the LocalBusiness type, your site title as the name and the home URL as the @id/url. The weekly hours and special days are mapped to openingHoursSpecification and specialOpeningHoursSpecification.
Yes. The “open now” status is calculated in PHP and cached internally for a short time using WordPress transients. When you save new opening hours, the plugin automatically invalidates its own cache.\ Be aware that very aggressive full-page caching can still delay the visible change between “open” and “closed” if the cached page is not refreshed.
Yes. You can set the timezone and formats on the settings screen, and some shortcodes also accept optional timezone, format_time and format_date attributes. The plugin uses PHP’s DateTime internally.
The plugin is fully translation-ready and ships with several .po/.mo files (German, French, Italian, Spanish, Dutch, Danish, Finnish, Swedish, Norwegian (Bokmål), Czech, Polish, Portuguese, Russian, Japanese, Simplified Chinese).\
Once the plugin is published on wordpress.org, translations will be managed via translate.wordpress.org as well.