Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active March 10, 2021 23:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bekarice/e1ed502859c327ee0243 to your computer and use it in GitHub Desktop.
Save bekarice/e1ed502859c327ee0243 to your computer and use it in GitHub Desktop.
Edits the WooCommerce email order items table to enable purchase notes
<?php // only copy this line if needed!
/**
* Edits the email order items table to enable purchase notes always.
*
* @param array $args the email template arguments
* @return array updated args
*/
function sww_add_wc_order_email_purchase_notes( $args ) {
$args['show_purchase_note'] = true;
return $args;
}
add_filter( 'woocommerce_email_order_items_args', 'sww_add_wc_order_email_purchase_notes' );
@robrecord
Copy link

Note - this snippet does not work in 2019

@jarodthornton
Copy link

Note - this snippet does not work in 2019

Is there an update for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment