nevercrox.com

WooCommerce Change Verified Owner Reviews Text

Pre-Requisites

There are no pre-requisites for this code snippet to work. Keep in mind this solution consists of two code snippets, one to display the content and one to style it.

How To Implement This Solution?

Add these two code snippets as separate entries in either your active child theme’s functions.php file or the Code Snippets plugin.

About The Snippet

If you’re capturing reviews and using WooCommerce to manage bookings, courses, events, or services, the “verified owner” label can seem out of place. For example, if you have 15 reviews for a spa booking and they all say “verified owner,” it can be confusing—owner of what, the spa? Customizing these small details may seem minor, but they add up and enhance the User Experience (UX). A better UX often leads to higher conversion rates and more revenue for your store. Unfortunately, we couldn’t find a way to remove the brackets around the verified owner text without editing the template file itself, which we avoid for security and update reasons. However, this guide will show you how to edit the text. Additionally, a bit of CSS can make those pesky parentheses look much better!

Code Snippet 1 (Paste This Code In functions.php or Code Snippets )
/**
* Snippet Name:     Change the "verified owner" text on WooCommerce product reviews.
* Snippet Author:   Nevercrox Solutions
*/

add_filter( 'gettext', 'nevercrox_translate_woocommerce_strings', 999, 3 );
function nevercrox_translate_woocommerce_strings( $translated, $untranslated, $domain ) {
    if ( ! is_admin() && 'woocommerce' === $domain ) {
        switch ( $translated ) {
            case 'verified owner':
                $translated = 'verified ticket holder';
                break;
        }
    }
    return $translated;
}

 

Just Added Blogs

Need A Specifc Blog ?

Request A Blog

Check Out More Related Snippets

0
Would love your thoughts, please comment.x
()
x