How to display customer email within the meta order data box

woocommerce_admin_order_data_after_shipping_address is the hook you’re looking for. add_action( ‘woocommerce_admin_order_data_after_shipping_address’, ‘my_function’ ); function my_function( $order ) { echo ‘<div class=”jquery-copy”><input type=”text” readonly value=”‘ . esc_attr( $order->get_billing_email() ) . ‘”></div>’; } There’s a chance you might want to use $order->get_shipping_email() instead.

How to add fee_lines using woocommerce rest API v3?

Here is my code that working fine. “fee_lines”: [ { “name”: “7.5% Booking Fee”, “tax_status”: “taxable”, “tax_class”: “”, “total”: “26.02”, “total_tax”: “26.02”, “taxes”: [], “meta_data”: [] }, { “name”: “Waiter Tip (5%)”, “tax_status”: “taxable”, “tax_class”: “”, “total”: “8.00”, “total_tax”: “8.00”, “taxes”: [], “meta_data”: [] } ]