Title: user_new_form
Published: April 25, 2014
Last modified: August 20, 2026

---

# do_action( ‘user_new_form’, string $type )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#wp--skip-link--target)

Fires at the end of the new user form.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#description)󠁿

Passes a contextual string to make both types of new user forms uniquely targetable.
Contexts are ‘add-existing-user’ (Multisite), and ‘add-new-user’ (single site and
network admin).

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#parameters)󠁿

 `$type`string

A contextual string specifying which type of new user form the hook follows.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#source)󠁿

    ```php
    do_action( 'user_new_form', 'add-existing-user' );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/user-new.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-admin/user-new.php#L506)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/user-new.php#L506-L506)

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/user_new_form/?output_format=md#comment-content-2999)
 2.   [Ralf Klis](https://profiles.wordpress.org/rklis/)  [  8 years ago  ](https://developer.wordpress.org/reference/hooks/user_new_form/#comment-2999)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fuser_new_form%2F%23comment-2999)
    Vote results for this note: 1[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fuser_new_form%2F%23comment-2999)
 4. Since 4.5 this does now apply to new users on Network site. The relevant hook for
    a network site is
 5.     ```php
        do_action( 'network_user_new_form' );
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fuser_new_form%2F%3Freplytocom%3D2999%23feedback-editor-2999)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fuser_new_form%2F)
before being able to contribute a note or feedback.