gravityflow_columns_inbox_table

Description

The gravityflow_columns_inbox_table filter allows the columns to be modified for the inbox page.

Note: It is recommended to only use this filter if you fully understand what you’re doing, as it can interfere with the inbox filters available via the UI. Different filters return different columns, so you need to make sure you return the right columns.

Parameters

ParameterTypeDetails
$columnsArrayThe columns to be filtered.
$argsArrayThe array of args for this inbox table.

Examples

Change column headers on the Workflow Inbox page.

1
2
3
4
5
6
add_filter( 'gravityflow_columns_inbox_table', 'nc_gravityflow_columns_inbox_table', 10, 2 );
function nc_gravityflow_columns_inbox_table( $columns, $args ) {
   $columns['created_by'] = "New title for submitter column";
   $columns['workflow_step'] = "New column title";
   return $columns;
}

Note: If you want to customize the values that display within a column (such as if you were adding a new/custom column) you would want to also create a filter with gform_entries_field_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?