WPDev.one
Core Function
View Source on Trac ↗

wp_send_new_user_notifications()

wp_send_new_user_notifications( mixed $user_id, mixed $notify = 'both' )

Initiates email notifications related to the creation of new users.

Parameters 2 required

Name / Type Description
$user_id
int

ID of the newly created user.

Required
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'.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
4.4.0
Source File
wp-includes/user.php
Advertisement