Fires when a custom bulk action should be handled.
Description
The redirect link should be modified with success or failure feedback from the action to be used to display feedback to the user.
The dynamic portion of the hook name, $screen, refers to the current screen ID.
Parameters
$sendbackstring- The redirect URL.
$doactionstring- The action being taken.
$itemsarray- The items to take the action on. Accepts an array of IDs of posts, comments, terms, links, plugins, attachments, or users.
Source
$sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
Note that if you think this will work with network users page like `handle_bulk_actions-users-network`. no, DON’T use it!
This hook `handle_bulk_actions-users-network` will never called.