handle_network_bulk_actions-_id

Fires when a custom bulk action should be handled.

Description

apply_filters( 'handle_network_bulk_actions-_id', (string) $referer, (string) $action, (array) $themes, (int) $id ); 

The redirect link should be modified with success or failure feedback from the action to be used to display feedback to the user.

Parameters (4)

0. $referer (string)
The redirect URL.
1. $action (string)
The action being taken.
2. $themes (array)
The items to take the action on.
3. $id (int)
The site id.

Usage

To run the hook, copy the example below.
  1. $referer = apply_filters( 'handle_network_bulk_actions-_id', $referer, $action, $themes, $id ); 
  2.  
  3. if ( !empty( $referer ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the handle_network_bulk_actions-_id callback 
  2. function filter_handle_network_bulk_actions__id( $referer, $action, $themes, $id ) { 
  3. // make filter magic happen here... 
  4. return $referer
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'handle_network_bulk_actions-_id', 'filter_handle_network_bulk_actions__id', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'handle_network_bulk_actions-_id', 'filter_handle_network_bulk_actions__id', 10, 4 ); 

Defined (5)

The filter is defined in the following location(s).

/wp-admin/network/site-themes.php  
  1. $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id ); 
/wp-admin/network/site-users.php  
  1. $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id ); 
/wp-admin/network/sites.php  
  1. $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); 
/wp-admin/network/themes.php  
  1. $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes ); 
/wp-admin/network/users.php  
  1. $sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids );