Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
add_filter( 'ninja_forms_action_email_attachments', function( $attachments, $data, $settings ) {
// Append file path.
$attachments[] = $path_to_file;
return $attachments;
}, 10, 3 );

This comment has been minimized.

Copy link

@domneo domneo commented Jun 28, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment