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

Change “Sold By:” to Something Else in WCVendors

The following code snippets allow you to change the sold by and ‘vendor’ text shown on the front end. Select from the following filters, add and modify them using the provided guidelines, to your theme’s functions.php file:

Change Apply to become a vendor? on registration pages:

add_filter( 'wcvendors_vendor_registration_checkbox', 'custom_wcvendors_vendor_registration_checkbox', 10, 1 );
function custom_wcvendors_vendor_registration_checkbox( $message ) {
    $message = "Apply to become an Expert?";
    return $message;
}

Change Seller Info to Expert Details:

add_filter( 'wcvendors_seller_info_label', 'custom_wcvendors_seller_info_label', 10, 1 );
function custom_wcvendors_seller_info_label( $message ) {
    $message = "Expert Details";
    return $message;
}

Change Sold by: to Offered by: in cart:

add_filter( 'wcvendors_cart_sold_by', 'custom_wcvendors_cart_sold_by', 10, 1 );
function custom_wcvendors_cart_sold_by( $message ) {
    $message = "Offered by";
    return $message;
}

Change Sold by: to Offered by: in product meta:

add_filter( 'wcvendors_cart_sold_by_meta', 'custom_wcvendors_cart_sold_by_meta', 10, 1 );
function custom_wcvendors_cart_sold_by_meta( $message ) {
    $message = "Offered by ";
    return $message;
}

Change Sold by: to Offered by: in product loop:

add_filter( 'wcvendors_sold_by_in_email', 'custom_wcvendors_sold_by_in_email', 10, 1 );
function custom_wcvendors_sold_by_in_email( $message ) {
    $message = "Offered by ";
    return $message;
}

Change Sold by: to Offered by: in email receipts:

add_filter( 'wcvendors_sold_by_in_email', 'custom_wcvendors_sold_by_in_email', 10, 1 );
function custom_wcvendors_sold_by_in_email( $message ) {
    $message = "Offered by ";
    return $message;
}

filters

Updated on December 20, 2016

Was this article helpful?