Forked from kjohnson/ninja-forms-add-email-attachment.php
Created
February 21, 2016 12:55
-
-
Save geeac/2d225eaa92867fa25e16 to your computer and use it in GitHub Desktop.
Add an Attachment to Email Notifications in Ninja Forms
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 | |
/* | |
Plugin Name: Ninja Forms Email Attachment | |
*/ | |
function add_my_attachment( $attachments ) { | |
$attachments[] = 'server_path_to_my_file'; | |
return $attachments; | |
} | |
add_filter( 'nf_email_notification_attachments' , 'add_my_attachment' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment