Verified reviews
The Verified purchase badge module in Polski for WooCommerce marks WooCommerce product reviews written by customers who bought the product, using WooCommerce's own purchase check on the reviewer's email address or user account. It is off by default and only adds a label before the review text: it does not moderate, sort or filter reviews.
Enabling the module
Section titled "Enabling the module"Go to Polski > Modules and switch on Verified purchase badge. It is off by default. The module needs reviews enabled in WooCommerce (WooCommerce > Settings > Products > General > Enable product reviews).
How verification works
Section titled "How verification works"The badge is added by the plugin while the review text is rendered. For each comment the plugin checks that:
- the comment is on a
productpost - the comment carries an email address
- WooCommerce reports a matching purchase for that email address or user account
The purchase check is WooCommerce's own wc_customer_bought_product(). That means the match is on the exact email address stored with the review, or on the logged-in user ID, and only orders in WooCommerce's paid statuses (by default processing and completed) count. There are no matching modes to choose from and no normalisation of Gmail aliases or letter case.
When the check passes, the badge is placed immediately before the review text. The plugin hooks the WordPress comment_text filter at priority 20, so the badge appears wherever the theme prints the review text through that filter.
| Review | Badge |
|---|---|
Logged-in customer who bought the product, order completed |
Yes |
| Guest review whose email matches a paid guest order for the product | Yes |
Buyer whose only order is pending or on-hold |
No |
| Review left with a different email address than the order, by a guest | No |
| Comment on a post or page, not a product | No |
Badge configuration
Section titled "Badge configuration"One setting, in Polski > Settings > Content & Trust, under Verified purchase badge:
| Setting | Default | Stored in |
|---|---|---|
| Badge text | Verified purchase (translated with the plugin) |
polski_verified_review option, key badge_text |
The text is escaped before output, so HTML in it is shown as text.
The badge is a single element:
<span class="polski-verified-badge">Verified purchase</span>While the module is on, the plugin adds this inline style on product pages:
.polski-verified-badge { display: inline-block; background: #46b450; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 11px; margin: 0 6px 6px 0;}The style is registered under its own handle, polski-verified-review, and only on single product pages (is_product()). It does not depend on WooCommerce's woocommerce-general stylesheet, so the badge keeps its look in themes that dequeue it, such as Storefront.
To restyle it, target .polski-verified-badge in your theme stylesheet. There are no modifier classes, no icon element and no size variants.
What the module does not do
Section titled "What the module does not do"The following are not part of this module, in any released version:
- no admin statistics screen for verified against unverified reviews
- no moderation queue, review limits, minimum-time rule or suspicious-review detection
- no front-end filter or sorting control for verified reviews
- no
Reviewstructured data, which is emitted by WooCommerce and by the Schema.org module, not here - no shortcode for the badge
- no filters under
polski/verified_reviews/
For review request emails, use the separate Review Request Emails module in Polski > Modules.
The site audit lists this module under "Verified reviews": a pass when it is on, a warning when it is off.
Troubleshooting
Section titled "Troubleshooting"No badge despite a purchase. Check the order status: only WooCommerce's paid statuses count, processing and completed by default. Then check that the email address on the review is exactly the one on the order, since the match is not fuzzy.
No badge on any review. Confirm the module is switched on in Polski > Modules and that WooCommerce collects an email address with reviews.
Which orders count as a verified purchase?
Section titled "Which orders count as a verified purchase?"Orders in WooCommerce's paid statuses, processing and completed by default. The check is wc_customer_bought_product(), so a store that changes the paid statuses through WooCommerce changes this module too.
Can I change the badge wording or colour?
Section titled "Can I change the badge wording or colour?"The wording, yes: edit Badge text in Polski > Settings > Content & Trust. The colour comes from the inline style; override .polski-verified-badge in your theme stylesheet.
Does the badge show on old reviews?
Section titled "Does the badge show on old reviews?"Yes. The check runs every time a review is displayed, so reviews written before you enabled the module get the badge as soon as the purchase matches.
Report issues: github.com/wppoland/polski/issues