gform_email_background_color_label

gform_email_background_color_label

DescriptionUsageParametersExamplePlacementSinceSource Code

Description
Allows the background color for the field label in the html email to be changed.
Usage
add_filter( 'gform_email_background_color_label', 'your_function_name', 10, 3 );

Parameters

$color string
The current background color. The default is #EAF2FA.

$field Field Object
The current field.

$entry Entry Object
The current entry.

Example
add_filter( 'gform_email_background_color_label', 'set_email_label_color', 10, 3 );
function set_email_label_color( $color, $field, $lead ){
return '#CC99FF';
}

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 1.8.6.
Source Code
This filter is located in GFCommon::get_submitted_fields() in common.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註