CB Opening Hours

外掛說明

CB Opening Hours is a powerful plugin that lets you manage and display the opening and closing hours of multiple shops or store locations. It fetches weekly shop hours using Google Places API via unique Place IDs, supports special hours, and allows custom overrides with specific reasons (e.g., early close, holidays).

Add unlimited shops and display hours using simple shortcodes. The plugin supports both automatic (cron-based) and manual data sync.

External Services

This plugin uses the Google Places API to retrieve place details (like opening hours) based on the provided Place ID.

Data sent:
– Place ID (admin-defined)
– API Key (admin-supplied)
– Language (as selected in settings)

When data is sent:
– During scheduled updates (cron)
– When manually refreshing API data from admin

Service Used:
Google Maps Terms of Service
Google Privacy Policy

What data is sent and when:

  • The plugin sends the Place ID to the Google Places API to fetch store hours.
  • This occurs during plugin initialization or when an admin updates the Place ID in the settings.
  • No personal or user-identifiable data is collected, stored, or transmitted.

Source Code

This plugin includes readable (non-minified) JavaScript and CSS files inside the /assets/js/ and /assets/css/ directories.

Installation from within WordPress

  1. Go to Plugins > Add New in the WordPress admin.
  2. Click Upload Plugin.
  3. Select the cb-opening-hours.zip file from your computer.
  4. Click Install Now and then Activate.

Manual installation

  1. Upload the entire cb-opening-hours folder to the /wp-content/plugins/ directory.
  2. Go to Plugins > Installed Plugins in WordPress admin.
  3. Find CB Opening Hours and click Activate.

After Activation

  1. Go to Open Hour Settings > Enter API Key (or the plugin’s admin menu).
  2. Enter your Google Places API Key.
  3. Add shops using their Place IDs.
  4. Use the shortcode [shop_hours] to display shop hours on the frontend.

常見問題集

Do I need a Google API key?

Yes, a valid Google Places API key is required to fetch opening hours based on Place ID.

How many shops can I add?

There is no limit. You can add as many shops as needed.

Does it support special hours or exceptions?

Yes, you can add custom/special hours and mention specific reasons (e.g., early close, maintenance).

How does data get updated?

You can enable automatic updates via cron or use a manual fetch button.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈CB Opening Hours〉的開發相關工作。

參與者

將〈CB Opening Hours〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release.