handle_bulk_actions-

handle_bulk_actions-

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('handle_bulk_actions-') is found 6 times:

  • /wp-admin/edit-tags.php line 204
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
            }
            check_admin_referer( 'bulk-tags' );
            $tags = (array) $_REQUEST['delete_tags'];
            /** This action is documented in wp-admin/edit-comments.php */
            $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
            break;
    }
     
    if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) {
        $location = remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) );
    }
  • /wp-admin/edit.php line 186
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
            }
            break;
        default:
            /** This action is documented in wp-admin/edit-comments.php */
            $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
            break;
    }
     
    $sendback = remove_query_arg( array( 'action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view' ), $sendback );
     
    wp_redirect( $sendback );
  • /wp-admin/link-manager.php line 36
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
            $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to );
        } else {
            /** This action is documented in wp-admin/edit-comments.php */
            $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
        }
        wp_redirect( $redirect_to );
        exit;
    } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
        wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
        exit;
  • /wp-admin/plugins.php line 421
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
                    $plugins  = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array();
                    $sendback = wp_get_referer();
     
                    /** This action is documented in wp-admin/edit-comments.php */
                    $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
                    wp_safe_redirect( $sendback );
                    exit;
                }
                break;
        }
    }
  • /wp-admin/upload.php line 202
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
                $location = add_query_arg( 'deleted', count( $post_ids ), $location );
                break;
            default:
                /** This action is documented in wp-admin/edit-comments.php */
                $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
        }
     
        wp_redirect( $location );
        exit;
    } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
        wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
  • /wp-admin/users.php line 463
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
        $userids  = $_REQUEST['users'];
        $sendback = wp_get_referer();
     
        /** This action is documented in wp-admin/edit-comments.php */
        $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     
        wp_safe_redirect( $sendback );
        exit;
    }
     
    $wp_list_table->prepare_items();