Last active
March 10, 2021 23:51
-
-
Save bekarice/e1ed502859c327ee0243 to your computer and use it in GitHub Desktop.
Edits the WooCommerce email order items table to enable purchase notes
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
<?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' ); |
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
Note - this snippet does not work in 2019