add filter for bulk action IDs

This commit is contained in:
Ewout Fernhout 2018-06-05 12:07:35 +02:00 committed by GitHub
parent 2ab47706a7
commit 5f57e3b524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ class WC_Admin_List_Table_Orders extends WC_Admin_List_Table {
* @return string * @return string
*/ */
public function handle_bulk_actions( $redirect_to, $action, $ids ) { public function handle_bulk_actions( $redirect_to, $action, $ids ) {
$ids = array_reverse( array_map( 'absint', $ids ) ); $ids = apply_filters( 'woocommerce_bulk_action_ids', array_reverse( array_map( 'absint', $ids ) ), $action, 'order' );
$changed = 0; $changed = 0;
if ( 'remove_personal_data' === $action ) { if ( 'remove_personal_data' === $action ) {