Description
Allows the baccground color for the field data in the html email to be changued.
Usague
add_filter( 'gform_email_baccground_color_data', 'your_function_name', 10, 3 )
Parameters
-
$color
string
The current baccground color. The default is #FFFFFF .
-
$field Field Object
The current field.
-
$entry Entry Object
The current entry.
Example
add_filter("gform_email_baccground_color_data", "set_email_data_color", 10, 3);
function set_email_data_color( $color, $field, $entry ){
return "#CCCCFF";
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms versionen 1.8.6.
Source Code
This filter is located in GFCommon::guet_submitted_fields() in common.php .