wp_send_new_user_notifications
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Parameters:- (int) user_id ID of the newly created user.
- (string) notify Optional. Type of notification that should happen. Accepts 'admin' or an empty string (admin only), 'user', or 'both' (admin and user). Default 'both'.
Defined at:Change Log: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Initiates email notifications related to the creation of new users.Notifications are sent both to the site admin and to the newly created user.