user_new_form action-hookWP 3.7.0

Fires at the end of the new user form.

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).

Usage

add_action( 'user_new_form', 'wp_kama_user_new_form_action' );

/**
 * Function for `user_new_form` action-hook.
 * 
 * @param string $type A contextual string specifying which type of new user form the hook follows.
 *
 * @return void
 */
function wp_kama_user_new_form_action( $type ){

	// action...
}
$type(string)
A contextual string specifying which type of new user form the hook follows.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

In file: /wp-admin/user-new.php
user_new_form
wp-admin/user-new.php 492
do_action( 'user_new_form', 'add-existing-user' );
wp-admin/user-new.php 650
do_action( 'user_new_form', 'add-new-user' );

Where the hook is used in WordPress

Usage not found.