Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thegdshop/207c313ee4084c1c01360b3ddeeea30f to your computer and use it in GitHub Desktop.
Save thegdshop/207c313ee4084c1c01360b3ddeeea30f to your computer and use it in GitHub Desktop.
/**
* Only display minimum price for WooCommerce variable products
**/
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->get_price());
return $price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment