1. Home
  2. WC Vendors Pro
  3. How To
  4. Change “Sold By:” to Something Else in WCVendors Pro

Change “Sold By:” to Something Else in WCVendors Pro

The following code snippets allow you to change the sold by and ‘vendor’ text shown on the front end. Add the code to your theme’s functions.php file.

Change Sold by to Vendor in loop:

add_filter( 'wcv_loop_sold_by', 'custom_wcv_loop_sold_by');
function custom_wcv_loop_sold_by( $sold_by ) {
    $sold_by['title'] = 'Vendor: ';
    return $sold_by;
}

Change Sold by: to Vendor: in single product pages:

add_filter( 'wcv_product_sold_by', 'custom_wcv_product_sold_by');
function custom_wcv_product_sold_by( $sold_by ) {
        $sold_by['title'] = 'Vendor: ';
        return $sold_by;
}

filters

Updated on December 20, 2016

Was this article helpful?