Skip to content

Instantly share code, notes, and snippets.

View lukasprelovsky's full-sized avatar

Lukáš Prelovský lukasprelovsky

View GitHub Profile
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 );
}