Description
The gravityflow_inbox_field_value filter allows customization of field/column values within the inbox list view. It is similar in concept to gform_entries_field_value which gets applied in many other locations.
Parameters
Parameter | Type | Details |
---|---|---|
$value | String | The current value to display |
$form_id | Integer | The current form ID. |
$field_id | Integer | The current field ID. |
$entry | Entry | The current entry array. |
Examples
Capitalize a specific form/field value in the inbox
add_filter( 'gravityflow_inbox_field_value', 'jo_inbox_capitalize_example', 10, 4 );
function jo_inbox_capitalize_example( $value, $form_id, $field_id, $entry) {
if ( $form_id = '5' && $field_id == '27') {
return strtoupper( $value );
}
return $value;
}
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?