| 开发者 |
webtendhq
devhasib |
|---|---|
| 更新时间 | 2026年10月24日 09:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
openingHours and holiday hours) for search enginesopeningHours, built from your weekly schedule. Upcoming holidays are added as special opening hours. Fill in Settings → Business Details and the markup is ready, with no code. Search engines may use structured data like this to understand your business. You can also change the type with a filter, or turn the markup off.
Closed notice bar
Turn it on under Settings → Closed Notice Bar to show a thin bar at the top of every page while you are closed, for example "We’re currently closed. Opens tomorrow at 9:00 AM". It prints nothing while you are open, is off by default, and can be dismissed by the visitor for the rest of their browser session.
Ways to display your hours
[webtend_business_hours], [webtend_business_hours display="today"] or [webtend_business_hours display="status"].pot file includedwebtend_bh_output_schema: return false to skip the JSON-LD block, for example on specific pageswebtend_bh_schema_type: change LocalBusiness to another Schema.org type such as Restaurantwebtend_bh_schema_data: add or change properties such as address, telephone or geowebtend_bh_show_notice_bar: return false to hide the closed-notice bar on specific pages--wbh-today-color, --wbh-font-size, --wbh-radius, --wbh-row-padding, --wbh-badge-radius) for theming without overrideswebtend-business-hours folder to /wp-content/plugins/.[webtend_business_hours] to a page.Activate the plugin, set your weekly hours under Business Hours → Weekly Schedule, then add the Business Hours block to a page, or paste the shortcode [webtend_business_hours] anywhere.
The live status badge is shown by default with the block, widget, shortcode and Elementor widget. To hide it, use [webtend_business_hours show_status="false"] or switch off "Show live status badge" in the block or widget settings.
Yes. Each day supports up to 4 time slots. For example, add 09:00–12:00 and 13:00–17:00 to show a lunch break.
Go to Business Hours → Holidays, pick the date and either leave "Closed all day" on or turn it off to enter custom opening and closing times. A holiday replaces the weekly schedule for that date.
Yes. Choose your timezone under Settings. All open/closed calculations use it, not the server clock.
Yes. On Business Hours → Holidays, set the date and an optional End date. Every day in the range uses the holiday setting. You can also switch on Repeat every year so it applies to the same dates each year.
Use [webtend_business_hours display="today"] for one line with today's hours, or [webtend_business_hours display="status"] for the badge alone. The block, widget and Elementor widget have a Layout option with the same choices.
Turn on Settings → Closed Notice Bar. The bar appears at the top of every page only while you are closed and includes the next opening time. If you use full-page caching, the bar reflects the time the page was cached.
A lightweight AJAX request refreshes the badge every 60 seconds by default. Change the interval under Settings, or set it to 0 to turn automatic refresh off.
Yes. The plugin outputs JSON-LD with your business type, name, address, phone number, openingHours (one entry per time slot) and your upcoming holidays as specialOpeningHoursSpecification. Set the details under Settings → Business Details, and turn the markup or the holiday part off under Settings. The plugin cannot guarantee how any search engine will use the data.
Go to Business Hours → Settings → Business Details and Address, fill in your details and save. Developers can add anything else, such as social profile links, with the webtend_bh_schema_data filter:
add_filter( 'webtend_bh_schema_data', function( $schema ) { $schema['sameAs'] = array( 'https://www.facebook.com/yourpage', 'https://www.instagram.com/yourpage', ); return $schema; } );
Yes:
add_filter( 'webtend_bh_output_schema', function( $output ) { return is_page( 'contact' ) ? false : $output; } );
Yes. The block, widget and shortcode work with block themes and classic themes. The Elementor widget registers only when Elementor 3.5 or later is active; Elementor is not required.
Yes. It runs alongside WooCommerce without conflicts. WooCommerce is not required.
Not currently. The plugin manages one schedule per site (each site in a multisite network has its own).
No. There are no remote requests, tracking, or external fonts or scripts.
Deleting the plugin from the Plugins screen removes its options and the holidays database table. Your pages are not changed, but a leftover shortcode will show as plain text.
Post in the plugin support forum. We aim to reply within 2 business days.
display="today" (today's hours on one line) or display="status" (live badge only) in the shortcode, or the new Layout option in the block, widget and Elementor widget.webtend_bh_show_notice_bar filter.init (resolves the WordPress 6.7+ "translation loaded too early" notice). Default status labels now follow the site language at display time; the Business Hours widget is registered on widgets_init.dbDelta()-compatible SQL, and a clear admin notice is shown if the table cannot be created. Activation prints no output..required style so it no longer reaches other WordPress screens.holiday, schema, and opening hours for better WordPress.org directory discovery.[webtend_business_hours]