View Categories

fluentform/email_styles

Description  #

This filter returns the email CSS style. Hook into this to modify the CSS style of email.

apply_filters('fluentform/email_styles', $css, $form, $notification);

Usage   #

add_filter('fluentform/email_styles', function ($css, $form, $notification) {
    // do your stuff
    return $css;
}, 10, 3);

Parameters #

  • $css (string) Email Style CSS
  • $notification (array) Notification 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 -> getEmailWithTemplate($emailBody, $form, $notification)