Forked from benoitmercusot/woocommerce-attachments.php
Created
February 7, 2017 14:51
-
-
Save lukasprelovsky/d7e0973bca641a0a640f56e3241f7271 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
add_filter( 'woocommerce_email_attachments', 'mbcreation_woocommerce_attachments', 10, 3 ); | |
function mbcreation_woocommerce_attachments($attachments, $email_id, $email_object){ | |
if( $email_id === 'customer_on_hold_order'){ | |
$attachments[] = get_attached_file( 612 ); | |
} | |
return $attachments; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment