handle_bulk_actions-

handle_bulk_actions-

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('handle_bulk_actions-') is found 6 times:

  • /wp-admin/edit-tags.php line 204
    		}
    		check_admin_referer( 'bulk-tags' );
    		$tags = (array) $_REQUEST['delete_tags'];
    		/** This action is documented in wp-admin/edit-comments.php */
    		$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    		break;
    }
    
    if ( ! $location && ! empty( $_REQUEST['_wp_http_referer'] ) ) {
    	$location = remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) );
    }
    
  • /wp-admin/edit.php line 186
    			}
    			break;
    		default:
    			/** This action is documented in wp-admin/edit-comments.php */
    			$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    			break;
    	}
    
    	$sendback = remove_query_arg( array( 'action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view' ), $sendback );
    
    	wp_redirect( $sendback );
    
  • /wp-admin/link-manager.php line 36
     
    		$redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to );
    	} else {
    		/** This action is documented in wp-admin/edit-comments.php */
    		$redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    	}
    	wp_redirect( $redirect_to );
    	exit;
    } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
    	wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
    	exit;
    
  • /wp-admin/plugins.php line 421
    				$plugins  = isset( $_POST['checked'] ) ? (array) wp_unslash( $_POST['checked'] ) : array();
    				$sendback = wp_get_referer();
    
    				/** This action is documented in wp-admin/edit-comments.php */
    				$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    				wp_safe_redirect( $sendback );
    				exit;
    			}
    			break;
    	}
    }
    
  • /wp-admin/upload.php line 202
    			$location = add_query_arg( 'deleted', count( $post_ids ), $location );
    			break;
    		default:
    			/** This action is documented in wp-admin/edit-comments.php */
    			$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    	}
    
    	wp_redirect( $location );
    	exit;
    } elseif ( ! empty( $_GET['_wp_http_referer'] ) ) {
    	wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
    
  • /wp-admin/users.php line 463
    			$userids  = $_REQUEST['users'];
    			$sendback = wp_get_referer();
    
    			/** This action is documented in wp-admin/edit-comments.php */
    			$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    
    			wp_safe_redirect( $sendback );
    			exit;
    		}
    
    		$wp_list_table->prepare_items();