| 开发者 | muse1990 |
|---|---|
| 更新时间 | 2026年11月26日 09:48 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[open_hours_status] — Shows the current status using your own wording, plus today's hours. Example output: "Open now · 9:00–18:00". The status is calculated from the timezone in your WordPress settings (Settings > General), so it is always correct for your business location, not the visitor's.[open_hours_week] — Shows the full weekly hours list, Monday to Sunday, with today highlighted.nonihours-business-hours-status folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen.[open_hours_status] and/or [open_hours_week] to any post, page, widget, or template.Your site's timezone, as set in Settings > General > Timezone. NoniHours reads it through WordPress itself (wp_timezone()), so daylight saving changes are handled automatically.
Not in this version. NoniHours supports same-day ranges only (for example 9:00–18:00). A range whose closing time is earlier than its opening time will simply never show as open.
The status shortcode shows only your "Closed" text for that day, and the weekly list shows "Closed" instead of a time range.
Yes. Both texts can be changed on the settings page, so you can write them in your own language or style, for example "We're open — come on in!".
No. NoniHours makes no external network requests and contains no tracking or analytics. Your hours are stored in a single WordPress option.
The shortcodes output semantic HTML with CSS classes you can target: .ophrs-status, .ophrs-status--open, .ophrs-status--closed, .ophrs-week, .ophrs-day, and .ophrs-day--today. A small default stylesheet (a colored open/closed dot and a simple list layout) is included and can be overridden by your theme.
[open_hours_status] shortcode with live open/closed status based on the site timezone.[open_hours_week] shortcode with the full weekly hours list.