| 开发者 |
khurramshehzad
proudnation47 |
|---|---|
| 更新时间 | 2026年9月8日 20:45 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
Places API for the fastest setup when a public 5-review sample is enough, or switch to Business Profile when you own or manage the listing and need the full review library that Google exposes through Business Profile APIs.
Theme override support
The plugin ships with one neutral default template. Developers can override that output from the active theme when they want a custom frontend design.
To keep the plugin WordPress.org-safe, it does not ship with any API key. Each site owner must provide their own Google Places API key and business location data.
Admin menu:
Google Reviews > ViewsGoogle Reviews > Settingsdefine( 'SOFTLINKSTER_GOOGLE_REVIEWS_GOOGLE_API_KEY', 'your-api-key-here' );
define( 'SOFTLINKSTER_GOOGLE_REVIEWS_GOOGLE_PLACE_ID', 'your-place-id-here' );
The plugin uses a neutral default template. Themes can override it by adding either of these files:
wp-content/themes/your-theme/softlinkster-reviews-for-google/reviews.phpwp-content/themes/your-theme/softlinkster-reviews-for-google/reviews/default.php[softlinkster_google_reviews]
Saved view example:
[softlinkster_google_reviews view="homepage-slider"]
Supported shortcode attributes:
view - load a saved view by IDlimit - maximum number of reviews to showmin_rating - minimum rating to includesort - one of newest, oldest, rating_desc, or rating_asclocation - render a saved location IDplace_id - render a specific place IDlayout - one of stacked, grid, compact, carousel, or marquee[softlinkster_google_reviews view="homepage-slider" limit="6" min_rating="4" sort="rating_desc"]
softlinkster-reviews-for-google folder to /wp-content/plugins/Google Reviews > SettingsPlaces API or Business Profile in Google Reviews > SettingsPlaces API, add your own Google Places API key, search for your business, and save at least one location, or define the API key and place ID in wp-config.phpBusiness Profile, add your approved Google OAuth client credentials, connect Google Business Profile, select the account and location, and saveGoogle Reviews > Views, create a saved view if needed, and copy its shortcode[softlinkster_google_reviews] or a saved-view shortcode into any post, page, or widget areaNo. The plugin never ships with an API key. Every site owner must provide their own key.
Yes. The plugin includes Google Reviews > Settings for API connection, locations, sync, and review curation, plus Google Reviews > Views for reusable saved displays. Constants in wp-config.php still override the dashboard values.
No. The key is used only on the server for backend requests to Google Places. The dashboard does not print the saved key back into the page after it is stored.
Yes. Each saved view has its own shortcode and its own display/style settings. You can create one view for a homepage slider, another for a grid, and another for a marquee without editing theme files.
The plugin upserts rows by source plus source_review_id, so repeated syncs do not create duplicate records for the same fetched review.
Because the Google Places API currently returns a maximum of 5 reviews per place, sorted by relevance. The plugin refreshes that limited feed every day and can only accumulate additional cached reviews if Google later rotates different reviews into that returned set.
Switch the plugin to Business Profile mode and connect a listing that you own or manage. Google Business Profile APIs support paginated review retrieval for managed locations, unlike the Places API public place feed.
The business owner must add the Google account used for connection as an Owner or Manager in Google Business Profile. The Google Cloud project also needs approved Business Profile API access, the required APIs enabled, an OAuth consent screen, and an OAuth Web application client. In the plugin, copy the displayed redirect URI into that OAuth client exactly, save the client ID and secret, connect Google, choose the account and location, save again, and run a sync. Adding someone only to Google Cloud does not give that person access to the business listing. Conversely, adding someone only to Google Business Profile does not let them configure the Google Cloud project.
For the business listing, add the developer’s Google account in Google Business Profile under Business Profile settings > People and access as a Manager or Owner. For the Google Cloud project, add the developer only if they need to create or edit credentials and enable APIs. Keep the client as the project and billing owner. Google’s requirements for Business Profile API approval apply to the project, not just the API key or Place ID.
Google Places review content is subject to Google Maps Platform usage restrictions. This plugin therefore treats review content as cache content, lets you configure a cache lifetime up to 29 days, and refreshes it instead of claiming permanent archival storage.
Only for documented plugin features. It contacts Google when you search for a business in wp-admin, when the scheduled or manual sync runs, and when the shortcode renders while the local cache is empty.
Use https://mrkhuran.com/contact for support. Once the plugin page is live on WordPress.org, you can also use the support forum there.
The release plugin includes readable PHP, CSS, JS, and template files directly in the package. It does not rely on obfuscated code or hidden remote assets to render the review output.