user_new_form

user_new_form

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.4.3

do_action('user_new_form') is found 2 times:

  • /wp-admin/user-new.php line 492

    * @since 3.7.0
    *
    * @param string $type A contextual string specifying which type of new user form the hook follows.
    */
    do_action( ‘user_new_form’, ‘add-existing-user’ );
    ?>
    ‘addusersub’ ) ); ?>

  • /wp-admin/user-new.php line 650
    </table>
    
    	<?php
    	/** This action is documented in wp-admin/user-new.php */
    	do_action( 'user_new_form', 'add-new-user' );
    	?>
    
    	<?php submit_button( __( 'Add New User' ), 'primary', 'createuser', true, array( 'id' => 'createusersub' ) ); ?>
    
    </form>
    <?php } // End if current_user_can( 'create_users' ). ?>
    

See this hook used in plugins: