Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: handle_network_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
121                      * The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
122                      *
123                      * @since 4.7.0
124                      *
125                      * @param string $redirect_url The redirect URL.
126                      * @param string $action       The action being taken.
127                      * @param array  $items        The items to take the action on.
128                      * @param int    $site_id      The site ID.
129                      */
130                     $referer = apply_filters( "handle_network_bulk_actions-{$screen}", $referer, $action, $themes, $id );
131                } else {
132                     $action = 'error';
133                     $n = 'none';
134                }
135      }
136
137      update_option( 'allowedthemes', $allowed_themes );
138      restore_current_blog();
139