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.

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 gravityflow_inbox_field_value or gform_entries_field_value.

Note: This filter is run on both initial page load and via AJAX calls to refresh the inbox entries list. This means that you will receive different results if evaluating via WordPress functions like current_user_can to check user role or get_the_ID for page context. Checking against the $args[‘detail_base_url’] value may be preferred depending on use case.

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?