Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: handle_bulk_actions-{$screen}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
94            *
95            * The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
96            *
97            * @since 4.7.0
98            *
99            * @param string $redirect_url The redirect URL.
100            * @param string $doaction     The action being taken.
101            * @param array  $items        The items to take the action on.
102            */
103           $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids );
104      }
105
106      wp_defer_comment_counting( false );
107
108      if ( $approved ) {
109           $redirect_to = add_query_arg( 'approved', $approved, $redirect_to );
110      }
111      if ( $unapproved ) {
112           $redirect_to = add_query_arg( 'unapproved', $unapproved, $redirect_to );