Description
Fires immediately after a new user is registered.
Occurrences
Filename | Line Number |
---|---|
wp-includes/user.php | 2542 |
Parameters
Type | Name | Description |
---|---|---|
int | $user_id | User ID. |
array | $userdata | The raw array of data passed to wp_insert_user(). |
PHP Doc
/**
* Fires immediately after a new user is registered.
*
* @since 1.5.0
* @since 5.8.0 The `$userdata` parameter was added.
*
* @param int $user_id User ID.
* @param array $userdata The raw array of data passed to wp_insert_user().
*/