Table of Contents
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 app/Services/FormBuilder/Notifications/EmailNotification.php