title: Woocommerce disable the shipping option methods in checkout
body: <p>On checkout page, I am trying to disable the shipping method option according to my area postcode. <a href="https://i.stack.imgur.com/AgJ9Z.png" rel="nofollow noreferrer">You can find image here</a> . I am working on Wordpress and PHP as a backend.</p>
  <p>If the postcode doesnot match the area, the shipping method will be disable and the text &quot;&quot; will be shown here. I am using this code:</p>
  <pre><code>        $packages = WC()-&gt;cart-&gt;get_shipping_packages();
  
          foreach ($packages as $key =&gt; $value) {
              $shipping_session = &quot;shipping_for_package_$key&quot;;
  
              unset(WC()-&gt;session-&gt;$shipping_session);
          }
  </code></pre>
  <p>But this code is not working, It will not disable the shipping method option. Can anyone help me?</p>