Description
apply_filters('wcv_edit_bulk_actions', $actions )
Parameters ( 1 ) ( array )
Sample
$actions = array( 'mark_paid' => __( 'Mark paid', 'wcvendors' ), 'mark_due' => __( 'Mark due', 'wcvendors' ), 'mark_reversed' => __( 'Mark reversed', 'wcvendors' ), // 'delete' => __('Delete', 'wcvendors'), );
Usage Examples
To run the filter, copy this sample
$array_val = apply_filters('wcv_edit_bulk_actions', $actions ); if ( ! empty( $array_val ) ) { // what has been modified... }
To make a callback function, copy this sample
// the filter wcv_edit_bulk_actions callback function my_filter_function( $param ) { // do your thing here :-) ... return $array_val; } add_filter( 'wcv_edit_bulk_actions' , 'my_filter_function', 10, 1 );
To remove the filter, copy this sample
//remove the filter remove_filter( 'wcv_edit_bulk_actions', 'my_filter_function', 10, 1 );
Defined
This filter is defined in the following source file(s)
- wc-vendors/classes/admin/class-admin-page.php line 470
$actions = apply_filters('wcv_edit_bulk_actions', $actions);