wphooks.info - handle_bulk_actions-{$screen}

handle_bulk_actions-{$screen}

*** New in v4.8 ***

The hook occurs in the following file:

wp-admin/edit-comments.php:
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
		 * 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.
		 *
		 * @since 4.7.0
		 *
		 * @param string $redirect_url The redirect URL.
		 * @param string $doaction     The action being taken.
		 * @param array  $items        The items to take the action on.
		 */
		$redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids );
	}

	wp_defer_comment_counting( false );

	if ( $approved )
		$redirect_to = add_query_arg( 'approved', $approved, $redirect_to );
	if ( $unapproved )
		$redirect_to = add_query_arg( 'unapproved', $unapproved, $redirect_to );
	if ( $spammed )