Skip to content

Instantly share code, notes, and snippets.

@fervous
Created February 24, 2017 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fervous/68dfcde92dd5d5fb13be5f1746e375f1 to your computer and use it in GitHub Desktop.
Save fervous/68dfcde92dd5d5fb13be5f1746e375f1 to your computer and use it in GitHub Desktop.
Change Price label , remove currency, add info, wc vendors pro product form
/* change the label for the price and sale price fields wc vendors pro front end add/edit product form */
add_filter('wcv_product_price', 'custom_wcv_product_price');
function custom_wcv_product_price ( $args ){
$args['label'] = '<strong>REGULAR PRICE</strong><br><i class="fa fa-info-circle" aria-hidden="true"></i> <small>Choose a price in USD $ <strong>WITHOUT</strong> currency symbols</small>';
return $args;
}
add_filter('wcv_product_sale_price', 'custom_wcv_product_sale_price');
function custom_wcv_product_sale_price ( $args ){
$args['label'] = '<strong>SALE PRICE</strong> <br><i class="fa fa-info-circle" aria-hidden="true"></i> <small>Choose a price in USD $ <strong>WITHOUT</strong> currency symbols</small>';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment