Table of Contents
Description #
This filter gives the option to modify the email body. It is called right before sending an email notification.
Usage #
Here is an example:
add_filter('fluentform_email_body',function($emailBody, $notification, $submittedData, $form){
$targetFormId = 10;
if($form->id != $targetFormId){
return;
}
//your code here
return $emailBody;
},10,4);
Parameters #
- $emailBody (html) Html output of the body
- $notification (Array) Notification settings data
- $submittedData (Array) Submitted form data
- $form (Object) The $form Object
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in
wp-content/plugins/fluentform/app/Services/FormBuilder/Notifications/EmailNotification.php