handle_network_bulk_actions-{$screen} WordPress Action Hook
This hook is called when bulk actions are performed on the posts list table for the specified network screens. The hook gives the developer an opportunity to handle the bulk actions themselves, instead of letting WordPress handle them. This is useful for custom post types or custom taxonomies, where the developer may want to perform different actions than the default WordPress ones. The $screen parameter is a string that contains the name of the current network screen.
apply_filters( "handle_network_bulk_actions-{$screen}", string $redirect_url , string $action , array $items , int $site_id ) #
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
- $redirect_url
(string)The redirect URL.
- $action
(string)The action being taken.
- $items
(array)The items to take the action on.
- $site_id
(int)The site ID.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |