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 | 
|---|---|
| 317 |  * | 
| 318 |  * Passes a contextual string to make both types of new user forms | 
| 319 |  * uniquely targetable. Contexts are 'add-existing-user' (Multisite), | 
| 320 |  * and 'add-new-user' (single site and network admin). | 
| 321 |  * | 
| 322 |  * @since 3.7.0 | 
| 323 |  * | 
| 324 |  * @param string $type A contextual string specifying which type of new user form the hook follows. | 
| 325 |  */ | 
| 326 | do_action( 'user_new_form', 'add-existing-user' ); | 
| 327 | ?> | 
| 328 | <?php submit_button( __( 'Add Existing User '), 'primary', 'adduser', true, array( 'id' => 'addusersub' ) ); ?> | 
| 329 | </form> | 
| 330 | <?php | 
| 331 | } // is_multisite() | 
| 332 |  | 
| 333 | if ( current_user_can( 'create_users') ) { | 
| 334 |      if ( $do_both ) | 
| 335 |           echo '<h3 id="create-new-user">' . __( 'Add New User' ) . '</h3>'; | 
| Line | Code | 
| 421 |      <tr> | 
| 422 |           <th scope="row"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th> | 
| 423 |           <td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( 'Add the user without sending an email that requires their confirmation.' ); ?></label></td> | 
| 424 |      </tr> | 
| 425 |      <?php } ?> | 
| 426 | </table> | 
| 427 |  | 
| 428 | <?php | 
| 429 | /** This action is documented in wp-admin/user-new.php */ | 
| 430 | do_action( 'user_new_form', 'add-new-user' ); | 
| 431 | ?> | 
| 432 |  | 
| 433 | <?php submit_button( __( 'Add New User '), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?> | 
| 434 |  | 
| 435 | </form> | 
| 436 | <?php } // current_user_can('create_users') ?> | 
| 437 | </div> | 
| 438 | <?php | 
| 439 | include( ABSPATH . 'wp-admin/admin-footer.php' ); |