Created
July 9, 2020 09:35
-
-
Save alex-authlab/0feb63d6487aeceea3db78b53927e263 to your computer and use it in GitHub Desktop.
email filter for fluent form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app\Services\FormBuilder\Notifications\EmailNotification.php | |
$emailBody = apply_filters('fluentform_email_body', $emailBody, $notification, $submittedData, $form); | |
$subject = apply_filters('fluentform_email_subject', $notification['subject'], $notification, $submittedData, $form); | |
$emailTo = apply_filters('fluentform_email_to', $notification['sendTo']['email'], $notification, $submittedData, $form); | |
return wp_mail( | |
$emailTo, | |
$subject, | |
$emailBody, | |
$headers, | |
$attachments | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment