Description
The gravityflow_status_args filter is a very flexible filter which allows a lot of control over the way the Status table is rendered for both the status page and exports.
Parameters
Parameter | Type | Details |
---|---|---|
$args | Array | The status page and export arguments. |
Examples
Add a bulk action to the status table
Use in conjunction with the gravityflow_bulk_action_status_table filter.
add_filter( 'gravityflow_status_args', 'sh_gravityflow_status_args', 20 );
function sh_gravityflow_status_args( $args ) {
if ( ! isset( $args['bulk_actions'] ) ) {
$args['bulk_actions'] = array();
}
$bulk_actions = array(
'custom_action' => 'My Custom Action',
);
$args['bulk_actions'] = array_merge( $args['bulk_actions'], $bulk_actions );
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?