Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: show_network_site_users_add_existing_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

This hook occurs 2 times in this file.

Line Code
165 $submenu_file = 'sites.php';
166
167 /**
168  * Filter whether to show the Add Existing User form on the Multisite Users screen.
169  *
170  * @since 3.1.0
171  *
172  * @param bool $bool Whether to show the Add Existing User form. Default true.
173  */
174 if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
175      wp_enqueue_script( 'user-suggest' );
176
177 require( ABSPATH . 'wp-admin/admin-header.php' ); ?>
178
179 <script type="text/javascript">
180 /* <![CDATA[ */
181 var current_site_id = <?php echo $id; ?>;
182 /* ]]> */
183 </script>
 
Line Code
252 <?php
253 /**
254  * Fires after the list table on the Users screen in the Multisite Network Admin.
255  *
256  * @since 3.1.0
257  */
258 do_action( 'network_site_users_after_list_table' );
259
260 /** This filter is documented in wp-admin/network/site-users.php */
261 if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
262 <h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3>
263 <form action="site-users.php?action=adduser" id="adduser" method="post">
264      <input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
265      <table class="form-table">
266           <tr>
267                <th scope="row"><?php _e( 'Username' ); ?></th>
268                <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
269           </tr>
270           <tr>