Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: wp_new_user_notification() | Email login credentials to a newly-registered user. |
Initiates email notifications related to the creation of new users.
Notifications are sent both to the site admin and to the newly created user.
(int) (Required) ID of the newly created user.
(string) (Optional) Type of notification that should happen. Accepts 'admin' or an empty string (admin only), 'user', or 'both' (admin and user).
Default value: 'both'
File: wp-includes/user.php
function wp_send_new_user_notifications( $user_id, $notify = 'both' ) { wp_new_user_notification( $user_id, null, $notify ); }
Version | Description |
---|---|
4.6.0 | Converted the $notify parameter to accept 'user' for sending notifications only to the user created. |
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_send_new_user_notifications