Description #
This filter returns the email attachment. This lets you add your attachments to the email.
apply_filters('fluentform/email_attachments', $emailAttachments, $emailData, $formData, $entry, $form);
Usage #
add_filter('fluentform/email_attachments', function ($emailAttachments, $emailData, $formData, $entry, $form) {
// do your stuff
return $emailAttachments;
}, 10, 5);
Parameters #
- $emailAttachments (string) Email Header
- $formData (array) Form Data
- $emailData (array) Email Data
- $entry (array) Entry Data
- $form (object) Form object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentFormPro\src\classes\ResendNotificationHandler -> resendEntryEmail($entryId, $feed, $sendToType, $customRecipient, $form)