Email attachment
-
How to add a PDF file with a watermark as an attachement to an email?
I tried this:
add_filter( 'woocommerce_email_attachments', 'dcwd_conditionally_attach_order_files_to_order_email', 10, 4 ); function dcwd_conditionally_attach_order_files_to_order_email( $attachments, $email_id, $object, $email_obj ) { if ( 'customer_completed_order' != $email_id ) { return $attachments; } $upload_dir = $attachments[] = return $attachments; }
but I don’t know what is supposed to be a directory path or a filename
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Email attachment’ is closed to new replies.