Last active
June 28, 2018 14:33
-
-
Save kjohnson/7d843f49a53d92eea452dc8a58ae2379 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 | |
add_filter( 'ninja_forms_action_email_attachments', function( $attachments, $data, $settings ) { | |
// Append file path. | |
$attachments[] = $path_to_file; | |
return $attachments; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry but how do I use this? I've tried adding it to my functions.php file with different variations of the file path but they all don't work. I'm also using the PDF Form Submissions extension so could this be clashing with the extension? Thanks!