This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_email_order_meta', 'woo_add_order_notes_to_email', 10, 3 ); | |
function woo_add_order_notes_to_email( $order, $sent_to_admin = true, $plain_text = false ) { | |
// You want to send those only to the Admin | |
if ( ! $sent_to_admin ) { | |
return; | |
} | |
// You can also check which email you are sending, by checking the order status | |
// Optional, comment it out, if not needed |