How to customize WooCommerce reviews: the tab, the form, the stars, names and dates
WooCommerce's reviews look the same on every store: a tab called "Reviews (3)", a form headed "Add a review", yellow stars, the reviewer's full name and a date. You can customize WooCommerce reviews a long way without installing a reviews suite or replacing a template. Most of what a store wants to change sits behind one of three filters or a line of CSS.
This guide covers what the settings give you, then five changes with a snippet for each: the tab name, the form's wording, the star colour, reviewer names and review dates. We tested every snippet on WooCommerce 11.1.2 with the Astra theme, on a product with no reviews and one with ten.
Quick answer. WooCommerce's settings switch reviews, star ratings and the "verified owner" label on or off, and nothing else. To rename the Reviews tab, use the
woocommerce_product_tabsfilter. To change the review form's heading, button and labels, usewoocommerce_product_review_comment_form_args. Star colour and hidden dates are CSS. Shortened reviewer names use WordPress'sget_comment_authorfilter. A snippets plugin or a child theme holds the code, and a small plugin such as NeoLite Review Customizer does four of the five from a settings page.
The short version
- Settings first. Five checkboxes under WooCommerce → Settings → Products decide whether reviews, stars and the verified label exist at all.
- The tab is one filter. Keep the review count in the name if you want shoppers to see it.
- The form is one filter for the heading, the button and both labels.
- Stars are an icon font coloured by your theme. One CSS rule recolours them.
- Names and dates are the two that reach further than they look. A shortened name also changes the name in your structured data. A date hidden with CSS stays in it.
What the settings do, with no code
Go to WooCommerce → Settings → Products and scroll to Reviews:
| Setting | What it changes |
|---|---|
| Enable product reviews | Whether products have reviews at all |
| Show "verified owner" label on customer reviews | The "(verified owner)" text after a buyer's name |
| Reviews can only be left by "verified owners" | Who sees the review form |
| Enable star rating on reviews | Whether the form asks for stars |
| Star ratings should be required, not optional | Whether a review can be sent without stars |
One more lives in WordPress. Settings → Discussion → "Comment author must fill out name and email" decides whether the Name and Email fields on the review form are required for a visitor who isn't logged in.
That is all of it. No setting renames the tab, rewords the form or changes a colour. Our guide to WooCommerce product reviews covers what each of these settings does to the page.
Where the snippets go
Each snippet below is a few lines of PHP or CSS. Put the PHP in a code-snippets plugin or in a child theme's functions.php, and never in the parent theme, where the next theme update deletes it. The CSS goes in Appearance → Customize → Additional CSS.
Change the wording in each snippet to your own. If your store isn't in English, the two form labels need the note under that snippet.
1. Rename the Reviews tab
The tab's name comes from WooCommerce's product tabs, and the woocommerce_product_tabs filter lets you replace it:
add_filter( 'woocommerce_product_tabs', function ( $tabs ) {
global $product;
if ( isset( $tabs['reviews'] ) && $product instanceof WC_Product ) {
$tabs['reviews']['title'] = sprintf( 'Customer reviews (%d)', $product->get_review_count() );
}
return $tabs;
}, 98 );In our test the tab went from "Reviews (10)" to "Customer reviews (10)", and from "Reviews (0)" to "Customer reviews (0)" on the product with none.
The count is worth keeping. WooCommerce's own title is "Reviews (%d)", and the number is the only sign above the fold that a product has reviews at all. If you'd rather not show "(0)", check the count and leave the brackets off when it is zero.
2. Reword the review form
The heading, the button and the two labels all pass through one filter, woocommerce_product_review_comment_form_args:
add_filter( 'woocommerce_product_review_comment_form_args', function ( $args ) {
$args['title_reply'] = 'Tell us what you think';
$args['label_submit'] = 'Post my review';
$args['comment_field'] = str_replace(
array( 'Your rating', 'Your review' ),
array( 'Stars', 'What did you think?' ),
$args['comment_field']
);
return $args;
} );What changed in our test:
| Part of the form | Before | After |
|---|---|---|
| Heading, product with reviews | Add a review | Tell us what you think |
| Heading, product with none | Be the first to review "T-Shirt" | Tell us what you think |
| Button | Submit | Post my review |
| Rating label | Your rating | Stars |
| Review label | Your review | What did you think? |
Three things to know:
title_replyreplaces both headings. WooCommerce uses a different
heading for a product with no reviews. Setting title_reply overwrites whichever one applies. To change only the empty-product heading, set it only when $product->get_review_count() is zero.
- The labels are inside a block of HTML. WooCommerce builds the rating
and review fields as one string, comment_field, so the snippet swaps the words inside it. The words it looks for are the English ones. On a translated store, search for the translated labels.
- The same filter runs on block themes. In WooCommerce 11.1.2 the
Product Reviews block's form passes its settings through this filter too. We read that in the block's code and didn't test it on a block theme.
3. Change the star colour
WooCommerce draws its stars with an icon font, and your theme sets their colour. One CSS rule covers the stars under each review and the stars in the form:
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
color: #b45309;
}On Astra both sets of stars took the new colour without !important. A theme with more specific star rules may need it, or may need its own selector. If nothing changes, inspect a star in your browser's developer tools and copy the selector your theme uses.
Check the colour against your page background before you settle on it. A pale yellow star on white is hard to see, and stars that can't be seen do nothing for the product.
4. Shorten reviewer names
Some stores would rather show "John D." than "John Doe". WordPress's get_comment_author filter changes the name wherever it is displayed:
add_filter( 'get_comment_author', function ( $author, $comment_id ) {
if ( is_admin() ) {
return $author;
}
$comment = get_comment( $comment_id );
if ( ! $comment || 'review' !== $comment->comment_type ) {
return $author;
}
$parts = preg_split( '/\s+/', trim( $author ) );
if ( count( $parts ) < 2 ) {
return $author;
}
return $parts[0] . ' ' . mb_substr( end( $parts ), 0, 1 ) . '.';
}, 10, 2 );It leaves the admin screens alone, so you still see full names when you moderate, and it only touches product reviews, not blog comments. A one-word name stays as it is.
This one reaches the structured data. WooCommerce's product markup takes each review's author through the same function. In our test the review shown as "John D." on the page was also "name": "John D." in the JSON-LD. That is consistent, which is what Google asks of markup, but it means the full name is no longer published anywhere on the page. The name stored in the database doesn't change. Remove the snippet and the full names come back.
5. Hide review dates
A store with a few old reviews sometimes prefers not to show how old they are. The simplest way is CSS:
.woocommerce-review__dash,
.woocommerce-review__published-date {
display: none;
}In our test the date disappeared from each review. Two limits:
- The date is still in the page. CSS hides it from shoppers. The
<time> element stays in the HTML, and the review's datePublished stays in the structured data.
- Think before you do it. A date tells a shopper the review is about the
product as it is sold now. Hiding dates because the reviews are old treats the symptom. Our guide to getting your first reviews is the fix for the cause.
What these changes don't do
- They don't add fields. A review title, a photo upload or a "would you
recommend this?" question needs a plugin or real development, because the answer has to be stored and shown as well as asked for.
- They don't change the rating scale. Five stars is built in.
- They aren't tested on a block theme. We tested on a classic theme. On
a block theme the review list is drawn by the Product Reviews block, and some classic review hooks don't run there. Our post on the Product Reviews block explains which. Check each change on your own product page.
The same changes without code
NeoLite Review Customizer is our free plugin for this. Its settings page, under NeoPlugin → Review Customizer, does four of the five:
| Change | Snippet above | Review Customizer |
|---|---|---|
| Rename the Reviews tab | Yes | Yes |
| Heading on a product with no reviews only | Yes, with a review-count check added | Yes, with the product's name inserted |
| Heading on every form, button and labels | Yes | No |
| Star colour | Yes | Yes, with a colour picker |
| Shorten reviewer names | Yes | Yes |
| Hide review dates | Yes | Yes |
We ran it through the same test. With its settings filled in, the tab read "Customer Stories", the empty-product heading read "Be the first to share your experience about T-Shirt!", the stars took the chosen colour and "John Doe" became "John D.", on the page and in the structured data.
Two differences from the snippets, so you can choose:
- The tab name is fixed text. The plugin replaces the whole title, so
the review count goes unless you leave the field empty. The snippet above keeps it.
- It doesn't reword the button or the labels. For those you still need
snippet 2.
It loads no script or stylesheet file on the storefront; the star colour is a few lines of inline CSS. It is free on WordPress.org, and the manual covers each setting.
Frequently asked questions
How do I customize WooCommerce reviews without a plugin?
With three filters and a little CSS. woocommerce_product_tabs renames the Reviews tab, woocommerce_product_review_comment_form_args rewords the form, and get_comment_author changes how reviewer names are shown. Star colour and hidden dates are CSS. Put the PHP in a snippets plugin or a child theme.
How do I change the "Reviews" tab name in WooCommerce?
Use the woocommerce_product_tabs filter and set a new title for the reviews tab. WooCommerce's own title is "Reviews" followed by the count in brackets. If you want to keep the count, add it back with $product->get_review_count(), as the first snippet in this post does.
How do I change the "Be the first to review" text?
Set title_reply in the woocommerce_product_review_comment_form_args filter. That one value is the form's heading. WooCommerce uses "Be the first to review" on a product with no reviews and "Add a review" on the rest, so check the review count if you only want to change one of them.
How do I change the star rating colour in WooCommerce?
With one CSS rule. Target .woocommerce .star-rating span::before for the stars under reviews and .woocommerce p.stars a::before for the stars in the form, and set color. Some themes need !important or a more specific selector.
Can I hide the reviewer's full name on WooCommerce reviews?
Yes, with the get_comment_author filter. The fourth snippet shows a first name and a last initial. It also changes the author name in the product's structured data, because WooCommerce reads the name through the same function. The stored name isn't changed.
Does customizing the review form affect SEO?
Mostly no. The tab name, the form wording and the star colour aren't part of the product's structured data. Shortened names appear shortened in the markup too, and a date hidden with CSS stays in it. None of the changes adds or removes a review or a rating.
Change the words, keep the reviews
None of this makes a store get more reviews, and none of it should be used to make reviews harder to read. It makes the reviews section sound like the rest of your shop. Start with the settings, add the snippets you need, and look at a product with no reviews and one with several before you call it done.