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 |
|---|---|
| 232 | |
| 233 | <?php $wp_list_table->display(); ?> |
| 234 | |
| 235 | </form> |
| 236 | |
| 237 | <?php do_action( 'network_site_users_after_list_table', '' );?> |
| 238 | |
| 239 | <?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?> |
| 240 | <h4 id="add-user"><?php _e('Add User to This Site') ?></h4> |
| 241 | <?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?> |
| 242 | <p><?php _e( 'You may add from existing network users, or set up a new user to add to this site.' ); ?></p> |
| 243 | <?php else : ?> |
| 244 | <p><?php _e( 'You may add from existing network users to this site.' ); ?></p> |
| 245 | <?php endif; ?> |
| 246 | <h5 id="add-existing-user"><?php _e('Add Existing User') ?></h5> |
| 247 | <form action="site-users.php?action=adduser" id="adduser" method="post"> |
| 248 | <?php wp_nonce_field( 'edit-site' ); ?> |
| 249 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
| 250 | <table class="form-table"> |
| Line | Code |
| 265 | ?> |
| 266 | </select></td> |
| 267 | </tr> |
| 268 | </table> |
| 269 | <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> |
| 270 | <?php submit_button( __('Add User'), 'primary', 'add-user', false, array( 'id' => 'submit-add-existing-user' ) ); ?> |
| 271 | </form> |
| 272 | <?php endif; ?> |
| 273 | |
| 274 | <?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?> |
| 275 | <h5 id="add-new-user"><?php _e('Add New User') ?></h5> |
| 276 | <form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post"> |
| 277 | <?php wp_nonce_field( 'edit-site' ); ?> |
| 278 | <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" /> |
| 279 | <table class="form-table"> |
| 280 | <tr> |
| 281 | <th scope="row"><?php _e( 'Username' ) ?></th> |
| 282 | <td><input type="text" class="regular-text" name="user[username]" /></td> |
| 283 | </tr> |