Terry Tsang

Terry Tsang
About
WooCommerce Snippet Series 06 - Display Purchase Note to All WooCommerce Emails

Display Purchase Note in All WooCommerce Emails

Purchase Note from the Product Data will be displayed at the customer’s new order which is completed. But what if you want to display that “Purchase Note” in all emails including the admin ones?

Below is the code snippets you can add to your theme functions.php:

function tt_display_purchase_note_in_all_emails( $args ) {
$args['show_purchase_note'] = true;

return $args;
}

add_filter( 'woocommerce_email_order_items_args', 'tt_display_purchase_note_in_all_emails', 10, 2 );

Leave a Comment