Description
The gravityflow_inbox_fields filter is used to customize the field columns displayed in the inbox page in the admin UI (use the block settings or shortcode parameters to do the same in front-end).
Note: This filter must be used in conjunction with gravityflow_inbox_filter.
Parameters
Parameter | Type | Details |
---|---|---|
$field_ids | Array | Field IDs to be presented in the inbox. |
Examples
Set the field columns to a specific set of field IDs
add_filter( 'gravityflow_inbox_fields', 'sh_gravityflow_inbox_fields' );
function sh_gravityflow_inbox_fields( $field_ids ){
// list the IDs of your fields here. The fields must be columns on the Gravity Forms entries list page.
$field_ids = array( '1','2','3');
//For complex field types you might use the sub-values. If you wanted first name and last name from field #2 it would be
$field_ids = array( '2.3','2.6');
return $field_ids;
}
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?