How to get order id in Woocomerce Email

I try to get the order id when adding extra content in woocommerce email, is anyone knows what goes wrong with this…?
Thanks

add_action( 'woocommerce_email_after_order_table', 'add_content', 20 );

function add_content() {
global $woocommerce;
echo $order_id 
echo $order->id;
 }

Read more here: How to get order id in Woocomerce Email

Leave a Reply

Your email address will not be published. Required fields are marked *