Skip to content

Instantly share code, notes, and snippets.

@leanda
Last active October 1, 2017 15:23
Show Gist options
  • Save leanda/70a4d0f132085ccaaa1c2a6328e163b7 to your computer and use it in GitHub Desktop.
Save leanda/70a4d0f132085ccaaa1c2a6328e163b7 to your computer and use it in GitHub Desktop.
Woocommerce Disable Variable Product Price Range completely #woocommerce
/*
* Disable Variable Product Price Range completely:
*/
add_filter('woocommerce_variable_price_html','custom_from',10);
add_filter('woocommerce_grouped_price_html','custom_from',10);
add_filter('woocommerce_variable_sale_price_html','custom_from',10);
function custom_from($price){
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment