Created
August 31, 2016 04:53
-
-
Save bekarice/f6208e5c6a1f69051ec51240454b48d8 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
<?php // only copy if needed | |
/** | |
* Only adds purchase notes to admin order emails | |
*/ | |
function sww_purchase_notes_for_admin_emails_only( $args ) { | |
$args['show_purchase_note'] = $args['sent_to_admin']; | |
return $args; | |
} | |
add_filter( 'woocommerce_email_order_items_args', 'sww_purchase_notes_for_admin_emails_only' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment