Title: Mobal – Business Hours &amp; Open Status
Author: mobalio
Published: <strong>2026 年 8 月 28 日</strong>
Last modified: 2026 年 8 月 28 日

---

搜索插件

![](https://ps.w.org/mobal-opening-hours/assets/banner-772x250.png?rev=3670367)

![](https://ps.w.org/mobal-opening-hours/assets/icon-256x256.png?rev=3670367)

# Mobal – Business Hours & Open Status

 作者：[mobalio](https://profiles.wordpress.org/mobalio/)

[下载](https://downloads.wordpress.org/plugin/mobal-opening-hours.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/mobal-opening-hours/#description)
 * [评价](https://cn.wordpress.org/plugins/mobal-opening-hours/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/mobal-opening-hours/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/mobal-opening-hours/#developers)

 [支持](https://wordpress.org/support/plugin/mobal-opening-hours/)

## 描述

Business hours the way visitors expect them: a clean weekly schedule, upcoming holiday
or exception hours, and a live open/closed status. **Mobal – Business Hours & Open
Status** drops them anywhere on your site with the block editor, Elementor, or a
shortcode.

#### Features

 * **Weekly hours** with split shifts (e.g. lunch and dinner service) and overnight
   hours (e.g. Fri 22:00 – Sat 04:00).
 * **Special hours** for holidays and exceptions. Single days or ranges, closed 
   or with different hours.
 * **Additional hours categories**: kitchen, delivery, takeout, drive-through, breakfast,
   lunch, dinner, happy hour and more.
 * **Open/closed status** and a “temporarily closed” mode.
 * **Block editor, Elementor and shortcode**: one renderer behind all three, so 
   your hours look the same everywhere. Works with any other page builder via the
   shortcode.
 * **Fits your theme**: inherits your fonts and colors. Text, background, size, 
   status and time colors are configurable per instance.
 * **SEO built in**: server-rendered hours (visible without JavaScript) and schema.
   org `openingHoursSpecification` structured data.
 * **10 display languages** built in (English, Finnish, Swedish, Danish, Norwegian,
   German, Dutch, Polish, Slovenian, Russian). Selected automatically from your 
   site language.
 * **Live preview** while you edit.
 * **Optional Mobal sync**: connect a free Mobal profile and manage hours once. 
   They update on your website automatically.

#### Standalone by default

Out of the box the plugin stores your hours in your WordPress database and makes
no external requests, from your server or from your visitors’ browsers.

#### Optional Mobal sync

Update your hours once in Mobal, and your website follows automatically. No more
editing the same holiday hours on your site, on Google, and everywhere else separately.
The sync is optional and off until you connect a profile. See the “External services”
section below for what is sent, when, and to whom.

#### Shortcode

    ```
    [mobal_opening_hours] renders with your saved defaults. Every display option can be overridden per instance, e.g.:

    [mobal_opening_hours variant="compact" has_open_status="1" open_color="#2e7d32" closed_color="#c62828" font_size="14px" alignment="center"]
    ```

With a connected Mobal account, show a specific profile (location) per instance:

    ```
    [mobal_opening_hours profile_id="00000000-0000-0000-0000-000000000000"]
    ```

Tip: the settings page’s live preview builds this shortcode for you. Pick a profile
and press “Copy shortcode”.

### External services

This plugin can connect to one external service: the Mobal API. The connection is
optional and off by default. Out of the box the plugin stores your hours in your
WordPress database and makes no external requests, from your server or from your
visitors’ browsers.

If you connect a Mobal profile in Opening Hours  Connect to Mobal, WordPress periodically
fetches that profile’s hours from Mobal’s API at `https://app.mobal.io/api/mobal/
business-hours/v2`. This is needed to keep the hours on your site in sync with the
hours you manage in Mobal. Your server sends the request when you add a profile,
when you press “Sync now”, and on a 6-hour schedule. The request contains the profile
IDs you configured. Its user agent identifies your site (site URL and plugin version)
for debugging purposes. No visitor data is ever sent. Your visitors’ browsers never
contact Mobal. If the sync ever stops (for example your Mobal trial ends), your 
site keeps showing the last synced hours, and you can switch to manual editing with
one click.

This service is provided by [Mobal](https://www.mobal.io/?utm_source=wordpress.org&utm_medium=referral&utm_campaign=wp_org_repo_listing),
a marketing platform for local businesses. It keeps your business information and
opening hours correct across Google, Apple Maps, Facebook and other channels, and
helps you collect and manage customer reviews, all from one dashboard.

Mobal terms of service: https://www.mobal.io/service-description
 Mobal privacy 
policy: https://www.mobal.io/privacy-policy

## 屏幕截图

[⌊Opening hours on a store website, synced from Mobal or entered manually⌉⌊Opening
hours on a store website, synced from Mobal or entered manually⌉[

Opening hours on a store website, synced from Mobal or entered manually

[⌊The native Elementor widget in the builder⌉⌊The native Elementor widget in the
builder⌉[

The native Elementor widget in the builder

[⌊The same hours on a dark theme: colors, alignment and styles follow your brand⌉⌊
The same hours on a dark theme: colors, alignment and styles follow your brand⌉[

The same hours on a dark theme: colors, alignment and styles follow your brand

[⌊The Opening Hours block in the block editor, with live preview⌉⌊The Opening Hours
block in the block editor, with live preview⌉[

The Opening Hours block in the block editor, with live preview

[⌊Connect to Mobal: profiles, multi-location sync and per-location links⌉⌊Connect
to Mobal: profiles, multi-location sync and per-location links⌉[

Connect to Mobal: profiles, multi-location sync and per-location links

[⌊The manual hours editor: split shifts, overnight hours and the weekly grid⌉⌊The
manual hours editor: split shifts, overnight hours and the weekly grid⌉[

The manual hours editor: split shifts, overnight hours and the weekly grid

## 区块

该插件提供了 1 个区块.

 *   Mobal Opening Hours Show your business hours: weekly schedule, holiday exceptions
   and a live open/closed status. Enter hours in WordPress or sync them from Mobal.

## 安装

 1. Install and activate the plugin.
 2. Go to the **Opening Hours** menu and either connect your Mobal profile or enter
    your hours manually.
 3. Add the **Mobal Opening Hours** block, the Elementor widget, or the `[mobal_opening_hours]`
    shortcode wherever you want the hours to appear.

## 常见问题

### Does the plugin work without a Mobal account?

Yes, fully. Hours are stored in your WordPress database and nothing is ever sent
to Mobal unless you explicitly connect a profile.

### Which page builders are supported?

The block editor and Elementor natively. Divi, WPBakery, Beaver Builder, Bricks 
and others work via the shortcode: add a Code/Text/Shortcode element and paste `[
mobal_opening_hours]`.

### In which time zone is the open/closed status calculated?

In the visitor’s local time zone (their device clock). Visitors of a local business
are usually in the same time zone as the business, so the status matches in practice.
If many of your visitors are far away, leave the status indicator off. It is off
by default.

### My hours look unstyled for a split second / my optimizer plugin breaks the widget

The widget script must not be concatenated with other scripts. The plugin marks 
it with `data-no-optimize`, `data-cfasync="false"` and `nowprocket`. If your optimizer
ignores those, exclude `businessHoursWidget.js` from JS combining in its settings.

### Does it support multiple locations?

With a connected Mobal account, yes. Add each profile in Opening Hours  Connect 
to Mobal: paste its ID or profile-page URL, and the plugin looks the profile up 
and shows its name for confirmation. The first profile in the list is the default.
New blocks and the plain shortcode use it. Every block and Elementor widget offers
a profile dropdown with the profile names (managed in Mobal), and the shortcode 
takes `profile_id="..."`. Standalone mode stores one set of hours for the site. 
Multiple locations come from connected Mobal profiles, because that is where the
per-location hours are stored.

### Where is the source code?

Everything needed to rebuild the compiled files ships inside the package. The plugin’s
JavaScript sources are in `src/`, with the build configuration in `package.json`
and `webpack.config.js` (rebuild with `npm install && npm run build`). The bundled
hours widget ships unminified, and its TypeScript/Vue sources and build configuration
are in `assets/widget/src/` (rebuild with `npm ci && npm run build:wp`). Each has
a developer readme. Linter configuration and unit tests are development-only and
are not included. The widget bundle contains a dormant fetch path (axios) used only
when the widget is embedded outside WordPress. This plugin never uses it: WordPress
inlines the hours data server-side, so visitors’ browsers make no requests to Mobal.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Mobal – Business Hours & Open Status」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ mobalio ](https://profiles.wordpress.org/mobalio/)
 *   [ alexmobal ](https://profiles.wordpress.org/alexmobal/)

[帮助将「Mobal – Business Hours & Open Status」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/mobal-opening-hours)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/mobal-opening-hours/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/mobal-opening-hours/)，或通过[RSS](https://plugins.trac.wordpress.org/log/mobal-opening-hours/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/mobal-opening-hours/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.3 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/mobal-opening-hours/)
 * 标签
 * [business hours](https://cn.wordpress.org/plugins/tags/business-hours/)[elementor](https://cn.wordpress.org/plugins/tags/elementor/)
   [holiday hours](https://cn.wordpress.org/plugins/tags/holiday-hours/)[Opening Hours](https://cn.wordpress.org/plugins/tags/opening-hours/)
   [store hours](https://cn.wordpress.org/plugins/tags/store-hours/)
 *  [高级视图](https://cn.wordpress.org/plugins/mobal-opening-hours/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/mobal-opening-hours/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/mobal-opening-hours/reviews/)

## 贡献者

 *   [ mobalio ](https://profiles.wordpress.org/mobalio/)
 *   [ alexmobal ](https://profiles.wordpress.org/alexmobal/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/mobal-opening-hours/)