my Google Reviews
Plugin for displaying Google reviews.
by Rocket Martue · github.com/rocket-martue/my-google-reviews · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rocket-martue/my-google-reviews/archive/refs/heads/master.zipReadme
my Google Reviews
このプラグインは、Google の Place ID を使用してレビューを表示します。
get_google_reviews( $place_id )
ショートコード
[google_reviews place_id=$place_id]
Googleマイビジネスのデータを取得するには、APIを使用した独自の API Key が必要です。
- 新しいプロジェクトを作成するか、Google Developer's Consoleで既存のプロジェクトを開きます。
- Places APIを検索し、ボタンをクリックしてアカウントでこのAPIを有効にします。
- 認証情報で「認証情報を作成」ボタンをクリックします。
- オプションから「API Key」を選択します。
- このキーが作成されたら、「閉じる」をクリックします。
- 新しく作成したAPIキーを選択します。
- 「アプリケーションの制限」の下で、次のように設定します: 「IPアドレス」と「項目の追加」にウェブサーバーの IP: xxx.xxx.xxx.xxx を設定します。
- 「APIの制限」の下で、「キーの制限」を選択し、オプションのリストから Places API」だけを選択し、「OK」をクリックします。
- 「保存」をクリックして制限を設定します。
- この新しいAPI Keyをこの「設定」>「一般」>「Google Reviews Settings」の「API Key」に入力します。 11.最後に、定期的なリクエストのために、プロジェクトの課金を有効にして、実質的かつ無料のAPIリクエスト割り当てを受け取ってください。
Google の Place ID Finder で事業所名を検索してください。 Google マップでビジネス名を編集することができます。