Initiates email notifications related to the creation of new users.
Description
Notifications are sent both to the site admin and to the newly created user.
Parameters
$user_idintrequired- ID of the newly created user.
$notifystringoptional- Type of notification that should happen. Accepts
'admin'or an empty string (admin only),'user', or'both'(admin and user).
Default'both'.Default:
'both'
Source
function wp_send_new_user_notifications( $user_id, $notify = 'both' ) {
wp_new_user_notification( $user_id, null, $notify );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.