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_idint
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'
Signature, return type and hooks compared across 5 parsed releases.
4.6.0
Converted the $notify parameter to accept 'user' for sending notifications only to the user created.from the docblock
4.4.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/user.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.