WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
199 | $submenu_file = 'sites.php'; |
200 |
|
201 | /** |
202 | * Filters whether to show the Add Existing User form on the Multisite Users screen. |
203 | * |
204 | * @since 3.1.0 |
205 | * |
206 | * @param bool $bool Whether to show the Add Existing User form. Default true. |
207 | */ |
208 | if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) |
209 | wp_enqueue_script( 'user-suggest' ); |
210 |
|
211 | require( ABSPATH . 'wp-admin/admin-header.php' ); ?> |
212 |
|
213 | <script type="text/javascript"> |
214 | var current_site_id = <?php echo $id; ?>; |
215 | </script> |
216 |
|
217 |
|
Line | Code |
280 | <?php |
281 | /** |
282 | * Fires after the list table on the Users screen in the Multisite Network Admin. |
283 | * |
284 | * @since 3.1.0 |
285 | */ |
286 | do_action( 'network_site_users_after_list_table' ); |
287 |
|
288 | /** This filter is documented in wp-admin/network/site-users.php */ |
289 | if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> |
290 | <h2 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h2> |
291 | <form action="site-users.php?action=adduser" id="adduser" method="post"> |
292 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
293 | <table class="form-table"> |
294 | <tr> |
295 | <th scope="row"><label for="newuser"><?php _e( 'Username' ); ?></label></th> |
296 | <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td> |
297 | </tr> |
298 | <tr> |