Description #
This filter returns the email body.
apply_filters('fluentform/email_body', $emailBody, $notification, $submittedData, $form);
Usage #
add_filter('fluentform/email_body', function ($emailBody, $notification, $submittedData, $form) {
// do your stuff
return $emailBody;
}, 10, 4);
Parameters #
- $emailBody (string) Email Body
- $notification (array) Notification Data
- $submittedData (array) Submitted 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 -> notify($notification, $submittedData, $form, $entryId = false)