title: How to hide specific shipping method when free shipping is available
body: <p>I have created 3 shipping methods in woo-commerce but I want to have the option to choose between Standard and Express Shipping for orders below $150 and Express and Free Shipping for orders over $150 on the checkout page.</p>
  <p>I have already found this code but it hides the rest of the shipping methods when Free Shipping is available. and I need to have Express shipping in addition to Free Shipping.</p>
  <pre class="lang-php prettyprint-override"><code>function my_hide_shipping_when_free_is_available($rates){
      $free = array();
  
      foreach ($rates as $rate_id =&gt; $rate) {
          if ('free_shipping' === $rate-&gt;method_id) {
              $free[$rate_id] = $rate;
              break;
          }
      }
  
      return !empty($free) ? $free : $rates;
  }
  
  add_filter('woocommerce_package_rates', 'my_hide_shipping_when_free_is_available', 150);
  </code></pre>
  <p>Would you please help me to have both Express Shipping and Free Shipping option for orders above $150?</p>