gravityflow_columns_status_table
The gravityflow_columns_status_table filter allows the columns to be modified for the status page.
Warning: only use this filter if understand what you're doing as it can interfere with the status filters. Different filters return different columns, so you need to make sure you return the right columns.
Example usage 1: Changes the order of the columns
add_filter( 'gravityflow_columns_status_table', 'sh_gravityflow_columns_status_table', 10, 3 ); /** * @param array $columns * @param array $args * @param WP_List_Table $table * * @return array */ function sh_gravityflow_columns_status_table( $columns, $args, $table ) { $order = array( 'cb', 'workflow_final_status','created_by', 'form_id' ); $new_columns = array(); foreach ( $order as $k ) { if ( isset( $columns[ $k ] ) ) { $new_columns[ $k ] = $columns[ $k ]; } } return $new_columns; }
Example usage 2: Changes column headers for 'Submitter' and 'Step' on the Workflow Status page.
add_filter( 'gravityflow_columns_status_table', 'nc_gravityflow_columns_status_table', 10, 3 ); function nc_gravityflow_columns_status_table( $columns, $args, $table ) { $columns['created_by'] = "New title for submitter column"; $columns['workflow_step'] = "New column title"; return $columns; }
Placement
This code should be placed in the functions.php file of your active theme.