register_new_user
Action HookDescription
Fires after a new user registration has been recorded.Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Action |
Line Number | 3568 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$user_id
|
ID of the newly registered user. |
Usage Examples
Basic Usage
<?php
// Hook into register_new_user
add_action('register_new_user', 'my_custom_function', 10, 1);
function my_custom_function($user_id) {
// Your custom code here
}
Source Code Context
wp-includes/user.php:3568
- How this hook is used in WordPress core
<?php
3563 *
3564 * @since 4.4.0
3565 *
3566 * @param int $user_id ID of the newly registered user.
3567 */
3568 do_action( 'register_new_user', $user_id );
3569
3570 return $user_id;
3571 }
3572
3573 /**
PHP Documentation
<?php
/**
* Fires after a new user registration has been recorded.
*
* @since 4.4.0
*
* @param int $user_id ID of the newly registered user.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.