gravityflow_bulk_action_status_table
The gravityflow_bulk_action_status_table filter allows custom bulk actions to be processed on the Status table
Parameters
$feedback - The admin message.
$bulk_action - The action.
$entry_ids - The entry IDs to be processed.
$args - The args for this table.
Example usage:
add_filter( 'gravityflow_bulk_action_status_table', 'filter_gravityflow_bulk_action_status_table', 10, 4 ); /** * Add a bulk action to the status table. Use in conjuntion with the gravityflow_bulk_action_status_table filter. * * @param $feedback * @param $bulk_action * @param $entry_ids * @param $args * * @return string|WP_Error The feedback for the user. Either a string or a WP_Error instance. */ function filter_gravityflow_bulk_action_status_table( $feedback, $bulk_action, $entry_ids, $args ) { // Process the bulk action and return some feedback to the user return $feedback; }
Placement
This code should be placed in the functions.php file of your active theme.