handle_network_bulk_actions-(screen_id) filter-hookWP 4.7.0

Fires when a custom bulk action should be handled.

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.

Usage

add_filter( 'handle_network_bulk_actions-(screen_id)', 'wp_kama_handle_network_bulk_actions_screen_id_filter', 10, 4 );

/**
 * Function for `handle_network_bulk_actions-(screen_id)` filter-hook.
 * 
 * @param string $redirect_url The redirect URL.
 * @param string $action       The action being taken.
 * @param array  $items        The items to take the action on.
 * @param int    $site_id      The site ID.
 *
 * @return string
 */
function wp_kama_handle_network_bulk_actions_screen_id_filter( $redirect_url, $action, $items, $site_id ){

	// filter...
	return $redirect_url;
}
$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.

Changelog

Since 4.7.0 Introduced.

Where the hook is called

In file: /wp-admin/network/site-themes.php
handle_network_bulk_actions-(screen_id)
wp-admin/network/site-themes.php 139
$referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/network/sites.php 233
$redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/network/site-users.php 179
$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/network/themes.php 282
$referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
wp-admin/network/users.php 132
$sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores

Where the hook is used in WordPress

Usage not found.