Last active
November 9, 2016 12:18
-
-
Save MinaPansuriya/6120d0845404b2a1b8e8c0c0316ba176 to your computer and use it in GitHub Desktop.
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
/** | |
* @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