Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Balakrishnan-flycart/77e523644370b65cbe4e222263aab50b to your computer and use it in GitHub Desktop.
Save Balakrishnan-flycart/77e523644370b65cbe4e222263aab50b to your computer and use it in GitHub Desktop.
Woo Discount Rules v2 - Remove class
function remove_filter_price_class( $class ) {
$class = str_replace("pewc-main-price","",$class);
return $class ;
}
add_filter( 'woocommerce_product_price_class', 'remove_filter_price_class', 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment