Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: show_network_site_users_add_new_form

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
323
324 <?php
325 /**
326  * Filters whether to show the Add New User form on the Multisite Users screen.
327  *
328  * @since 3.1.0
329  *
330  * @param bool $bool Whether to show the Add New User form. Default true.
331  */
332 if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) :
333      ?>
334 <h2 id="add-new-user"><?php _e( 'Add New User' ); ?></h2>
335 <form action="<?php echo network_admin_url( 'site-users.php?action=newuser' ); ?>" id="newuser" method="post">
336      <input type="hidden" name="id" value="<?php echo esc_attr( $id ); ?>" />
337      <table class="form-table" role="presentation">
338           <tr>
339                <th scope="row"><label for="user_username"><?php _e( 'Username' ); ?></label></th>
340                <td><input type="text" class="regular-text" name="user[username]" id="user_username" /></td>
341           </tr>