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.


Top ↑

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.


Top ↑

Source

File: wp-admin/network/site-themes.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.