[WordPress] 外掛分享: CB Opening Hours

首頁外掛目錄 › CB Opening Hours
全新外掛
安裝啟用
尚無評分
292 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.2+ v1.0.0 上架:2025-06-23

內容簡介

**總結:** CB Opening Hours 是一個強大的外掛程式,讓您可以管理和顯示多家商店或店面位置的營業時間。透過 Google Places API 取得每週營業時間,支援特殊時段及允許使用者自訂營業時間,例如提前關閉或節日營業。

1. 這個外掛程式使用 Google Places API 來獲取根據提供的 Place ID 的店面詳細資訊,例如營業時間。
2. 資料發送包含:
- Place ID(由管理員定義)
- API 金鑰(由管理員提供)
- 語言(如在設定中選擇)
3. 資料傳送時間:
- 在排程更新時(cron)
- 當管理員手動刷新 API 資料時
4. 使用的服務:
- Google Maps 服務條款
- Google 隱私政策
5. 資料發送與時間:
- 外掛程式傳送 Place ID 至 Google Places API 以獲取店面營業時間。
- 發生在外掛程式初始化時或管理員在設定中更新 Place ID 時。
- 不會收集、存儲或傳輸任何個人或可識別用戶的數據。

**裝置方式:**
- 透過 WordPress 內進行安裝:
1. 前往 WordPress 管理員中的「外掛」>「新增」。
2. 點擊「上傳外掛程式」。
3. 從您的電腦中選擇 cb-opening-hours.zip 檔案。
4. 點擊「立即安裝」,然後啟用。
- 手動安裝:
1. 上傳整個 cb-opening-hours 資料夾至 /wp-content/plugins/ 目錄。
2. 前往 WordPress 管理員中的「外掛」>「已安裝的外掛程式」。
3. 找到 CB Opening Hours,並點擊啟用。

**啟用後:**
- 前往「開啟時間設定」> 輸入 API 金鑰(或外掛程式的管理選單)。
- 輸入您的 Google Places API 金鑰。
- 使用店面的 Place ID 加入商店。
- 使用簡碼 [shop_hours] 在前端顯示商店營業時間。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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

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

Manual installation

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

After Activation

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

延伸相關外掛

文章
Filter
Mastodon