title: Replace Woocommerce product variable price range from custom field values
body: <p>I want to use a custom field to add price for vendors in variable products. So, I am using the following code to get the maximum and minimum price of custom field of variable product, but it return nothing. Please help me to find how can get the price from custom field for variable products.</p>
  
  <pre><code>    // Min and max variable prices
      add_filter( 'woocommerce_variable_sale_price_html', 'new_variable_price_format', 10, 2 );
      add_filter( 'woocommerce_variable_price_html', 'new_variable_price_format', 10, 2 );
      function new_variable_price_format( $price, $product ) {
      $price = get_post_meta( $product-&gt;get_id(), 'vendor_price_regu');
      echo "&lt;pre&gt;";
      print_r($price);
      echo "&lt;/pre&gt;";
      return $price;
      }
  </code></pre>