Display the customer IP Address in new order email notification
<p>When a new order is created, woocommerce will send an email to admin, and I want it to send customer's IP address inside the email as well. But I can't get it work, here is what I got so far:</p>

<pre><code>&lt;?php echo get_post_meta( $order-&gt;id, '_customer_ip_address', true ); ?&gt;
</code></pre>

<p>This code goes in <code>mytheme/woocommerce/emails/admin-new-order.php</code></p>

<p>Any ideas? </p>

<p>Thanks.</p>