Description
The gravityflow_inbox_args filter allows the inbox page arguments to be overridden.
Parameters
Parameter | Type | Details |
---|---|---|
$args | Array | The inbox page arguments. |
Examples
Add a Bulk Approve/Reject column
Display the ‘actions’ column with the bulk approve/reject feature, which is also possible on front-end blocks and shortcodes
1 2 3 4 5 | add_filter( 'gravityflow_inbox_args' , 'sh_gravityflow_inbox_args' ); function sh_gravityflow_inbox_args( $args ){ $args [ 'actions_column' ] = true; return $args ; } |
Add Last Update & Due Date of Workflow entries added to Inbox
1 2 3 4 5 6 | 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 ; } |
Hide the ‘submitter’ column from the workflow inbox
1 2 3 4 5 | add_filter( 'gravityflow_inbox_args' , 'sh_gravityflow_inbox_args' ); function sh_gravityflow_inbox_args( $args ){ $args [ 'submitter_column' ] = false; return $args ; } |
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?