Description #
This filter returns the base colors that are used in the email.
apply_filters('fluentform/email_template_colors', $colors);
Usage #
add_filter('fluentform/email_template_colors', function ($colors) {
// do your stuff
return $colors;
}, 10, 1);
$colors = array(
'background_color' => '#f6f6f6',
'body_background_color' => '#ffffff',
'base_color' => '#444444',
'text_color' => '#444444'
);
Parameters #
- $colors (array) Colors
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\app\views\email\template\styles.php