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 |
|---|---|
| 351 | * |
| 352 | * Passes a contextual string to make both types of new user forms |
| 353 | * uniquely targetable. Contexts are 'add-existing-user' (Multisite), |
| 354 | * and 'add-new-user' (single site and network admin). |
| 355 | * |
| 356 | * @since 3.7.0 |
| 357 | * |
| 358 | * @param string $type A contextual string specifying which type of new user form the hook follows. |
| 359 | */ |
| 360 | do_action( 'user_new_form', 'add-existing-user' ); |
| 361 | ?> |
| 362 | <?php submit_button( __( 'Add Existing User' ), 'primary', 'adduser', true, array( 'id' => 'addusersub' ) ); ?> |
| 363 | </form> |
| 364 | <?php |
| 365 | } // is_multisite() |
| 366 | |
| 367 | if ( current_user_can( 'create_users') ) { |
| 368 | if ( $do_both ) |
| 369 | echo '<h2 id="create-new-user">' . __( 'Add New User' ) . '</h2>'; |
| Line | Code |
| 472 | <tr> |
| 473 | <th scope="row"><label for="noconfirmation"><?php _e('Skip Confirmation Email') ?></label></th> |
| 474 | <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> |
| 475 | </tr> |
| 476 | <?php } ?> |
| 477 | </table> |
| 478 | |
| 479 | <?php |
| 480 | /** This action is documented in wp-admin/user-new.php */ |
| 481 | do_action( 'user_new_form', 'add-new-user' ); |
| 482 | ?> |
| 483 | |
| 484 | <?php submit_button( __( 'Add New User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?> |
| 485 | |
| 486 | </form> |
| 487 | <?php } // current_user_can('create_users') ?> |
| 488 | </div> |
| 489 | <?php |
| 490 | include( ABSPATH . 'wp-admin/admin-footer.php' ); |