Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* @Title: WooCommerce Add Custom Notes to Order Email
* @Author: Mina Pansuriya
* @Website: http://minapansuriya.com
*/
add_action( 'woocommerce_email_after_order_table', 'pbs_woo_add_custom_message_to_admin_new_order', 15, 2 );
function pbs_woo_add_custom_message_to_admin_new_order( $order, $is_admin_email ) {
if ( $is_admin_email ) {
echo '<p><strong>Custom Message</strong> ' . 'This is custom message for Admin'. '</p>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment