Skip to content

Instantly share code, notes, and snippets.

@bentasm1
Created April 25, 2016 18:58
Show Gist options
  • Save bentasm1/cfc68661540d9f15de9fb9aed65db3ec to your computer and use it in GitHub Desktop.
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
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