WPDev.one
Core Function
View Source on Trac ↗

wp_new_user_notification()

wp_new_user_notification( mixed $user_id, mixed $deprecated = null, mixed $notify = '' )

Emails login credentials to a newly-registered user.

Parameters 2 required

Name / Type Description
$user_id
int

User ID.

Required
$deprecated
null

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.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
2.0.0
Source File
wp-includes/pluggable.php
Advertisement