title: Check if specific shipping method is enabled on WooCommerce cart page
body: <p>In WooCommerce cart page I am using the code below to check if specific shipping method is enabled, but the condition on the if statement is always true, so it doesn't work.  </p>
  
  <pre><code>    global $woocommerce;
      $shipping_methods = $woocommerce-&gt;shipping-&gt;load_shipping_methods();
      if ( $shipping_methods['free_shipping']-&gt;enabled == "yes" ) {
  
      }
  </code></pre>
  
  <p>How can I Check on cart page if specific shipping method is enabled?</p>