內容簡介
**總結:** RicReviews是一個免費的開源WordPress外掛,通過簡單的短代碼在您的網站上顯示Google Places評論。該外掛從Google Places API中獲取評論並在WordPress網站上美觀地顯示出來。
1. **問題:** RicReviews是什麼?
**答案:** RicReviews是一個免費且開源的WordPress外掛,可以讓您使用簡單的短代碼在網站上展示Google Places的評論。
2. **問題:** 這個外掛有哪些主要功能?
**答案:**
- 便捷整合:使用簡單的短代碼在網站的任何位置展示評論
- 自動更新:評論會根據您配置的WordPress定期任務(每天、每周或每月)自動獲取和更新
- 智能緩存:內建緩存系統以提高性能
- 可自定義:選擇您的主題顏色和主題(明亮/暗色)
- 靈活顯示:控制評論數量和排序選項
- 多語言支持:以短代碼中的不同語言檢索評論並進行語言篩選
- 調試記錄:用於排除API問題的可選調試日誌
- 安全:遵循WordPress編碼標準和安全最佳實踐
3. **問題:** 這個外掛是如何運作的?
**答案:**
- 初始檢索:當您保存設置時,該外掛會從Google Places API中獲取評論
- 數據庫存儲:評論存儲在自定義數據庫表中,以便快速檢索
- 緩存:使用WordPress暫存對評論進行24小時緩存
- 自動更新:WordPress定期任務會根據您配置的頻率自動獲取新的評論
- 顯示:短代碼從緩存/數據庫檢索評論並顯示出來
4. **問題:** 有哪些重要注意事項?
**答案:**
- Google Places API每次調用最多返回5條評論,這是Google強加的硬性限制,不是該外掛的限制。每次API調用最多返回5條評論,外掛根據您配置的頻率(每天、每周或每月)執行自動檢索。隨著時間的推移,由於Google更新了“5條最有幫助的評論” ,您可能會在數據庫中累積更多評論。
- 如果您配置多種語言,每種語言都需要單獨的API調用,這可能允許您收集更多評論(每種語言最多5條)。
5. **問題:** 這個外掛提供了哪些服務資訊?
**答案:** 這個外掛充當Google Places API(New)的接口。通過安裝和配置這個外掛,您同意使用Google Places API服務。請在使用之前查閱Google Places API服務條款。
外掛標籤
開發者團隊
原文外掛簡介
RicReviews is a free and open-source WordPress plugin that displays Google Places reviews on your website using a simple shortcode. The plugin fetches reviews from Google Places API (New) and displays them beautifully on your WordPress site.
Key Features
Easy Integration: Display reviews anywhere on your site with a simple shortcode
Automatic Updates: Reviews are automatically fetched and updated via configurable WordPress cron (daily, weekly, or monthly)
Smart Caching: Built-in caching system to improve performance
Customizable: Choose your primary color and theme (light/dark)
Flexible Display: Control the number of reviews and sorting options
Multilingual Support: Fetch reviews in multiple languages and filter by language in shortcode
Debug Logging: Optional debug logging for troubleshooting API issues
Secure: Follows WordPress coding standards and security best practices
How It Works
Initial Fetch: When you save settings, the plugin fetches reviews from Google Places API
Database Storage: Reviews are stored in a custom database table for fast retrieval
Caching: Reviews are cached using WordPress transients for 24 hours
Automatic Updates: WordPress cron job automatically fetches new reviews based on your configured frequency
Display: Shortcode retrieves reviews from cache/database and displays them
Important Note
Google Places API returns a maximum of 5 reviews per place per API call. This is a hard limit imposed by Google, not a limitation of this plugin. Each API call returns up to 5 reviews, and the plugin performs automatic fetches based on your configured frequency (daily, weekly, or monthly). Over time, you may accumulate more reviews in the database as Google updates the “5 most helpful reviews” for your place.
If you configure multiple languages, each language requires a separate API call, potentially allowing you to collect more reviews (up to 5 per language).
For more information, see Google’s Review Policy Documentation.
Service Information
This plugin acts as an interface to Google Places API (New). By installing and configuring this plugin, you consent to the use of Google Places API service. Please review Google Places API Terms of Service before use.
