gravityflow_inbox_args

The gravityflow_inbox_args filter allows the inbox page arguments to be overridden.

Parameters

Parameter Type Definition
$args Array Inbox page arguments

Examples

Example 1 - Bulk Approve/Reject column addition.

Display the 'actions' column with the bulk approve/reject feature, which is also possible on front-end shortcodes as seen here.

add_filter( 'gravityflow_inbox_args', 'sh_gravityflow_inbox_args' );
function sh_gravityflow_inbox_args( $args ){ 
    $args['actions_column'] = true;
    return $args;
}

Example 2 - Last Update & Due Date of Workflow entries added to Inbox.

Display the 'last update' and 'due date' columns from the workflow inbox.

add_filter( 'gravityflow_inbox_args', 'sh_gravityflow_inbox_args' );
function sh_gravityflow_inbox_args( $args ){ 
    $args['last_updated'] = true;
    $args['due_date'] = true;
    return $args;
}

Example 3 - Submitter name hidden from the Inbox.

Hide the 'submitter' column from the workflow inbox.

add_filter( 'gravityflow_inbox_args', 'sh_gravityflow_inbox_args' );
function sh_gravityflow_inbox_args( $args ){ 
    $args['submitter_column'] = false;
    return $args;
}

Placement

This code should be placed in the functions.php file of your active theme or in a custom functions plugin.