title: How to insert billing details into Woocommerce email?
body: <p>I am wondering how could I insert billing details (name, email and phone number) into Woocommerce email?</p>
  
  <p>Here is the code from Woocommerce-appointment plugin I'm using to send emails:</p>
  
  <pre><code>&lt;?php do_action( 'woocommerce_email_header', $email_heading ); ?&gt;
  
  &lt;?php if ( $appointment-&gt;get_order() &amp;&amp; $appointment-&gt;get_order()-&gt;billing_first_name &amp;&amp; $appointment-&gt;get_order()-&gt;billing_last_name ) : ?&gt;
  &lt;p&gt;&lt;?php printf( $opening_paragraph, $appointment-&gt;get_order()-&gt;billing_first_name . ' ' . $appointment-&gt;get_order()-&gt;billing_last_name ); ?&gt;&lt;/p&gt;
  &lt;?php endif; ?&gt;
  
  &lt;table&gt;
  &lt;tbody&gt;
      &lt;?php if ( $appointment-&gt;has_staff() &amp;&amp; ( $staff = $appointment-&gt;get_staff_member() ) ) : ?&gt;
          &lt;tr&gt;
              &lt;th scope="row"&gt;&lt;?php _e( 'Appointment Provider', 'woocommerce-appointments' ); ?&gt;&lt;/th&gt;
              &lt;td&gt;&lt;?php echo $staff-&gt;display_name; ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;?php endif; ?&gt;
      &lt;tr&gt;
          &lt;th scope="row"&gt;&lt;?php _e( 'Appointment Date', 'woocommerce-appointments' ); ?&gt;&lt;/th&gt;
          &lt;td&gt;&lt;?php echo $appointment-&gt;get_start_date( wc_date_format(), '' ); ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th scope="row"&gt;&lt;?php _e( 'Appointment Time', 'woocommerce-appointments' ); ?&gt;&lt;/th&gt;
          &lt;td&gt;&lt;?php echo $appointment-&gt;get_start_date( '', get_option( 'time_format' ) ) . ' &amp;mdash; ' . $appointment-&gt;get_end_date( '', get_option( 'time_format' ) ); ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th scope="row"&gt;&lt;?php _e( 'Appointment Time', 'woocommerce-appointments' ); ?&gt;&lt;/th&gt;
          &lt;td&gt;&lt;?php echo $appointment-&gt;get_start_date( '', get_option( 'time_format' ) ) . ' &amp;mdash; ' . $appointment-&gt;get_end_date( '', get_option( 'time_format' ) ); ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
  
  &lt;?php do_action( 'woocommerce_email_footer' ); ?&gt;
  </code></pre>
  
  <p>I want to insert name, email and phone into this (example for Customer name):</p>
  
  <pre><code>&lt;tr&gt;
  &lt;th scope="row"&gt;&lt;?php _e( 'Customer Email', 'woocommerce-appointments' ); ?&gt;&lt;/th&gt;
  &lt;td&gt;**HERE**&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I would really appreciate if anyone can help.</p>
  
  <p>Thanks.</p>