Skip to content

Instantly share code, notes, and snippets.

@kjohnson
Last active June 28, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjohnson/7d843f49a53d92eea452dc8a58ae2379 to your computer and use it in GitHub Desktop.
Save kjohnson/7d843f49a53d92eea452dc8a58ae2379 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'ninja_forms_action_email_attachments', function( $attachments, $data, $settings ) {
// Append file path.
$attachments[] = $path_to_file;
return $attachments;
}, 10, 3 );
@domneo
Copy link

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