Last active
July 2, 2018 11:48
-
-
Save bentasm1/3b275d3ae312155436c5 to your computer and use it in GitHub Desktop.
Change Vendors to other stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WC Vendors - 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; | |
} | |
/* WC Vendors - 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; | |
} | |
/* WC Vendors - 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; | |
} | |
/* WC Vendors - 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; | |
} | |
/* WC Vendors - Change Sold by to Offered by: in product loop */ | |
add_filter( 'wcvendors_sold_by_in_loop', 'custom_wcvendors_sold_by_in_loop', 10, 1 ); | |
function custom_wcvendors_sold_by_in_loop( $message ) { | |
$message = "Offered by "; | |
return $message; | |
} | |
/* WC Vendors - 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; | |
} | |
/* WC Vendors Pro - 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'] = 'Offered by: '; | |
return $sold_by; | |
} | |
/* WC Vendors Pro - 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'] = 'Offered by: '; | |
return $sold_by; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment