register_new_user action-hookWP 4.4.0

Fires after a new user registration has been recorded.

Usage

add_action( 'register_new_user', 'wp_kama_register_new_user_action' );

/**
 * Function for `register_new_user` action-hook.
 * 
 * @param int $user_id ID of the newly registered user.
 *
 * @return void
 */
function wp_kama_register_new_user_action( $user_id ){

	// action...
}
$user_id(int)
ID of the newly registered user.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

register_new_user()
register_new_user
wp-includes/user.php 3398
do_action( 'register_new_user', $user_id );

Where the hook is used in WordPress

wp-includes/default-filters.php 499
add_action( 'register_new_user', 'wp_send_new_user_notifications' );