title: WooCommerce | Display Lowest Price (Including Out Of Stock) - PHP
body: <p>There are many similar questions like this already around. But I have not been able to find a single solution for this question specifically.</p>
  
  <p>I, like many others, are using this snippet to show "As Low As" or "From" in place of standard price range that is displayed:</p>
  
  <p><a href="https://businessbloomer.com/disable-variable-product-price-range-woocommerce/" rel="nofollow noreferrer">https://businessbloomer.com/disable-variable-product-price-range-woocommerce/</a></p>
  
  <pre><code>/**
   * @snippet       Variable Product Price Range: "From: $$$min_price"
   * @how-to        Get CustomizeWoo.com FREE
   * @sourcecode    https://businessbloomer.com/?p=275
   * @author        Rodolfo Melogli
   * @compatible    WooCommerce 3.5.4
   * @donate $9     https://businessbloomer.com/bloomer-armada/
   */
  
  add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_min', 9999, 2 );
  
  function bbloomer_variation_price_format_min( $price, $product ) {
     $prices = $product-&gt;get_variation_prices( true );
     $min_price = current( $prices['price'] );
     $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) );
     return $price;
  }
  </code></pre>
  
  <p>And it works great, except for that I need this code to take into account any "Out Of Stock" variables. </p>
  
  <p>As of now, it will only show the lowest variable price if it's "In Stock". </p>
  
  <p>I need it to display the lowest price even if that current price variable is currently "Out Of Stock".</p>