title: Woocommerce Show default variation price
body: <p>I'm using Woocommerce and product variations and all my variations have a default variation defined. I would like to know, how I can find the default variation and display it's price.</p>
  
  <p>This is the code I got so far, but it displays the cheapest variation price, and I'm looking for my default variation product price instead. </p>
  
  <pre><code>// Use WC 2.0 variable price format, now include sale price strikeout
  add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 );
  add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 );
  function wc_wc20_variation_price_format( $price, $product ) {
  // Main Price
  $prices = array( $product-&gt;get_variation_price( 'min', true ), $product-&gt;get_variation_price( 'max', true ) );
  $price = $prices[0] !== $prices[1] ? sprintf( __( 'HERE YOUR LANGUAGE: %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
  // Sale Price
  $prices = array( $product-&gt;get_variation_regular_price( 'min', true ), $product-&gt;get_variation_regular_price( 'max', true ) );
  sort( $prices );
  $saleprice = $prices[0] !== $prices[1] ? sprintf( __( 'HERE YOUR LANGUAGE: %1$s', 'woocommerce' ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
  
  if ( $price !== $saleprice ) {
      $price = '&lt;del&gt;' . $saleprice . '&lt;/del&gt; &lt;ins&gt;' . $price . '&lt;/ins&gt;';
  }
  return $price;
  </code></pre>
  
  <p>} </p>
  
  <p>I found the code example here <a href="https://stackoverflow.com/questions/23065821/woocommerce-variation-product-price-to-show-default">Woocommerce variation product price to show default</a></p>