Description #
This filter returns the email headers.
apply_filters('fluentform/email_header', '', $form, $notification);
Usage #
add_filter('fluentform/email_header', function ($emailHeader, $form, notification) {
// do your stuff
return $emailHeader;
}, 10, 3);
Parameters #
- $emailHeader (string) Email Header
- $notification (array) Notification 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 FluentForm\app\Services\FormBuilder\Notifications\EmailNotifications -> getEmailWithTemplate($emailBody, $form, $notification)