Last active
August 29, 2015 14:26
-
-
Save elvinlee/5bbb79cdfc4f4ca933ae to your computer and use it in GitHub Desktop.
WC Vendors: Rename "Sold by" to Seller
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
/** | |
* Can change Seller to any name you want to change | |
*/ | |
function rename_sold_by($text) { | |
$return = str_replace('Sold by', 'Seller', $text); | |
return $return; | |
} | |
add_filter('wcvendors_sold_by_in_loop', 'rename_sold_by'); // Product Loop | |
add_filter('wcvendors_cart_sold_by', 'rename_sold_by'); // Cart Page | |
add_filter('wcvendors_cart_sold_by_meta', 'rename_sold_by'); // Single Product Page | |
add_filter('wcvendors_sold_by_in_email', 'rename_sold_by'); // Email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment