title: How I match postcode order with shipping zone
body: <p>I want to match between order postcode with postcode inside shipping zone and add post meta, but all my code always returns false is mean does not match.</p>
  <p>here my code</p>
  <pre><code>add_action('woocommerce_thankyou', 'checkpostcode', 10, 1);
  function checkpostcode( $order_id ) {
  
      if ( ! $order_id )
          return;
  
      // Getting an instance of the order object
      $order = wc_get_order( $order_id );
  
      $objects       = array();
      $shipping_zones = WC_Shipping_Zones::get_zones();
      $country =$order-&gt;get_shipping_country();
      $shipping_code =  $order-&gt;get_shipping_postcode();
      
      foreach ( $shipping_zones as $index =&gt; $postcode ) {
          $object = new stdClass();
          $object-&gt;id = $index;
          $object-&gt;postcode = $postcode;
          $objects[] = $object;
      }
      
      
      $matches = wc_postcode_location_matcher( $shipping_postcode, $objects, 'id', 'postcode', $country );
      if ( ! $matches ) {
          echo 'no';
          
      }else{
          echo 'yes';
           $order-&gt;update_meta_data( 'postcode', 'matches' );
          }
          
  
   
  }
  </code></pre>
  <p>could you tell me where is my mistake?</p>