Description
The gravityflow_step_highlight_color_inbox filter allows the step highlight color (hex value) of gravity flow inbox entries to be modified.
Parameters
Parameter | Type | Details |
---|---|---|
$step_highlight_color | String | The steps highlight color |
$form_id | Integer | The form id |
$entry | Entry | The current entry |
Examples
Change highlight colors on the Inbox Page
Assign different colors based on the entries from different forms.
add_filter( 'gravityflow_step_highlight_color_inbox', 'sh_gravityflow_step_highlight_color_inbox', 10, 5);
function sh_gravityflow_step_highlight_color_inbox( $step_highlight_color, $form_id, $entry) {
if ( $form_id == 99 ) {
$step_highlight_color = '#ffff00';
}
elseif ( $form_id == 101 ) {
$step_highlight_color = '#ff0000';
}
return $step_highlight_color;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?