title: Add message below shipping methods based on taxonomy terms in WooCommerce
body: <p>I'd like to add a custom message below the available shipping methods in the cart, but only if ALL products in the cart have a tag named 'express'.</p>
  <p>Therefore I use this snippet:</p>
  <pre class="lang-php prettyprint-override"><code>add_action( 'woocommerce_after_shipping_rate', 'action_after_shipping_rate', 20, 2 );
  function action_after_shipping_rate ( $method, $index ) {
      if( 'flat_rate:1' === $method-&gt;id ) {        
          echo __(&quot;&lt;p&gt;Arriving on your chosen date between 9am - 1pm Perfect for business addresses &amp; special occasions&lt;/p&gt;&quot;);
       }
      if( 'flat_rate:2' === $method-&gt;id ) {
          echo __(&quot;&lt;p&gt;Arriving on your chosen date between 9am - 7pm Perfect for residential addresses&lt;/p&gt;&quot;);
      }
  }
  
  add_filter( 'woocommerce_shipping_details', 'hide_shipping_details', 10, 2 );
  function hide_shipping_details( $rates, $package ) {
  
      $terms = array( 'express' ); 
      $taxonomy = 'product_tag';
  
      $found = false;
  
      foreach( $package['contents'] as $cart_item ) {
          if ( !has_term( $terms, $taxonomy, $cart_item['product_id'] ) ){
              $found = true;
              break;
          }
      }
      
      if ( $found === false ) {
          remove_action( 'woocommerce_after_shipping_rate', 'action_after_shipping_rate', 20, 2 );
      }
  }
  </code></pre>
  <p>But right now, the custom message remains if 1 or 2 products have the tag 'express' but not ALL products. Can someone help me solve this problem?</p>