Description #
This filter returns the destination email for emails. Multiple emails can be added by (,) comma separator.
apply_filters('fluentform/email_to', $address, $notification, $submittedData, $form);
Usage #
add_filter('fluentform/email_to', function ($address, $notification, $submittedData, $form) {
// do your stuff
return $address;
}, 10, 4);
Parameters #
- $address (string) Email
- $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)