title: How to send all the details of customers to admin and few details of customers to vendor in new order email
body: <p>I am using following WooCommerce function to send customer details in an email to <strong>admin</strong> and <strong>vendor</strong> when the new order is created.</p>
  <pre><code>&lt;?php 
  /**
  * WooCommerce new order email customer details
  */
  function filter__woocommerce_email_customer_details_fields( $fields, $sent_to_admin, $order ) {
  
      if ( empty( $fields ) ) {
  
          if ( $order-&gt;get_billing_email() ) {
              $fields['billing_email'] = array(
              'label' =&gt; __( 'Email address', 'woocommerce' ),
              'value' =&gt; wptexturize( $order-&gt;get_billing_email() ),
              );
          }
          if ( $order-&gt;get_billing_phone() ) {
              $fields['billing_phone'] = array(
              'label' =&gt; __( 'Phone', 'woocommerce' ),
              'value' =&gt; wptexturize( $order-&gt;get_billing_phone() ),
              );
          }
          if ( $order-&gt;get_customer_note() ) {
              $fields['customer_note'] = array(
              'label' =&gt; __( 'Customer note', 'woocommerce' ),
              'value' =&gt; wptexturize( $order-&gt;get_customer_note() ),
              );
          }
  
      }
  
      return $fields;
  }
  add_filter( 'woocommerce_email_customer_details_fields', 'filter__woocommerce_email_customer_details_fields', 10, 3 );
  </code></pre>
  <p>But now I want customization like when a new order email is sent to admin then all 3 details ( Email, Telephone and Notes ) need to send to admin , But only 2 details ( Emai and Notes ) need to send to Vendor</p>
  <p>I am using <strong>YITH WooCommerce Multi Vendor plugin</strong> which sends order email to a particular vendor</p>
  <p>How do I check that if an email is sent to admin then send all 3 details and if an email is sent to the vendor then send only 2 details ?</p>