handle_bulk_actions-{$screen} WordPress Action Hook

The handle_bulk_actions-{$screen} hook allows you to handle bulk actions for a particular screen. This hook is called when the user attempts to perform a bulk action on a screen.

apply_filters( "handle_bulk_actions-{$screen}", string $sendback, string $doaction, array $items ) #

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

$sendback

(string)The redirect URL.

$doaction

(string)The action being taken.

$items

(array)The items to take the action on. Accepts an array of IDs of posts, comments, terms, links, plugins, attachments, or users.


Top ↑

Source

File: wp-admin/edit.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.