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 for bookings, courses, events, or services, the “verified owner” label can seem out of place. Imagine having 15 reviews for a spa booking, all labeled “verified owner”—owner of what, the spa? It just doesn’t make sense. Customizing these small details may seem trivial, but they significantly enhance the User Experience (UX). A better UX often leads to higher conversion rates, driving more revenue to your store. Unfortunately, we couldn’t find a way to remove the brackets around the verified owner text without editing the template file, which we avoid for security and update reasons. However, this guide will show you how to edit the text. A bit of CSS can even 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