Created
April 25, 2016 18:58
-
-
Save bentasm1/cfc68661540d9f15de9fb9aed65db3ec to your computer and use it in GitHub Desktop.
WC Vendors Pro - Add/edit product form change title & description to something else
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
The same type of code can be used for every field, these | |
two examples change the Product Title and Product Description | |
text to something else on the add/edit product form. Goes in | |
your themes functions.php file as always. ;) | |
add_filter('wcv_product_title', 'custom_wcv_product_title'); | |
function custom_wcv_product_title( $args ){ | |
$args['label'] = 'New Product Name Label'; | |
return $args; | |
} | |
add_filter('wcv_product_description', 'custom_wcv_product_description'); | |
function custom_wcv_product_description( $args ){ | |
$args['label'] = 'New Product Description Label'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment