wp_new_user_notification
wp_new_user_notification ( $user_id, $deprecated = null, $notify = '' )
Parameters:- (int) user_id User ID.
- (null) deprecated Not used (argument deprecated).
- (string) notify Optional. Type of notification that should happen. Accepts 'admin' or an empty string (admin only), 'user', or 'both' (admin and user). Default empty.
Defined at:Change Log: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: —
Description
Emails login credentials to a newly-registered user.A new user registration notification is also sent to admin email.