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 |
---|---|
428 | } |
429 | ?> |
430 | <form method="post" name="adduser" id="adduser" class="validate" novalidate="novalidate" |
431 | <?php |
432 | /** |
433 | * Fires inside the adduser form tag. |
434 | * |
435 | * @since 3.0.0 |
436 | */ |
437 | do_action( 'user_new_form_tag' ); |
438 | ?> |
439 | > |
440 | <input name="action" type="hidden" value="adduser" /> |
441 | <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ); ?> |
442 |
|
443 | <table class="form-table" role="presentation"> |
444 | <tr class="form-field form-required"> |
445 | <th scope="row"><label for="adduser-email"><?php echo esc_html( $label ); ?></label></th> |
446 | <td><input name="email" type="<?php echo esc_attr( $type ); ?>" id="adduser-email" class="wp-suggest-user" value="" /></td> |
Line | Code |
484 | if ( current_user_can( 'create_users' ) ) { |
485 | if ( $do_both ) { |
486 | echo '<h2 id="create-new-user">' . __( 'Add New User' ) . '</h2>'; |
487 | } |
488 | ?> |
489 | <p><?php _e( 'Create a brand new user and add them to this site.' ); ?></p> |
490 | <form method="post" name="createuser" id="createuser" class="validate" novalidate="novalidate" |
491 | <?php |
492 | /** This action is documented in wp-admin/user-new.php */ |
493 | do_action( 'user_new_form_tag' ); |
494 | ?> |
495 | > |
496 | <input name="action" type="hidden" value="createuser" /> |
497 | <?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?> |
498 | <?php |
499 | // Load up the passed data, else set to a default. |
500 | $creating = isset( $_POST['createuser'] ); |
501 |
|
502 | $new_user_login = $creating && isset( $_POST['user_login'] ) ? wp_unslash( $_POST['user_login'] ) : ''; |