wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Defined at:Change Log:
- (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'.
- Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Initiates email notifications related to the creation of new users.
Notifications are sent both to the site admin and to the newly created user.