Skip to content

Instantly share code, notes, and snippets.

@alex-authlab
Created July 9, 2020 09:35
Show Gist options
  • Save alex-authlab/0feb63d6487aeceea3db78b53927e263 to your computer and use it in GitHub Desktop.
Save alex-authlab/0feb63d6487aeceea3db78b53927e263 to your computer and use it in GitHub Desktop.
email filter for fluent form
//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