Last active
August 29, 2015 14:27
-
-
Save dancameron/1a0202e3bc784f567440 to your computer and use it in GitHub Desktop.
Adding String Attachments (AddStringAttachment) with wp_mail (part 1)
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 | |
// add some info about your attachment so that | |
// your string attachment can be created later | |
$attachments = array(); | |
$pdf_attachment = array( | |
'pdf_doc_attachment_id' => $doc_id, | |
); | |
$attachments[] = wp_json_encode( $pdf_attachment ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment