wp_send_new_user_notifications() – Initiates email notifications related to the creation of new users.

You appear to be a bot. Output may be restricted

Description

Initiates email notifications related to the creation of new users.

Notifications are sent both to the site admin and to the newly created user.

Usage

wp_send_new_user_notifications( $user_id, $notify );

Parameters

$user_id
( int ) required – ID of the newly created user.
$notify
( string ) optional default: both – Optional. Type of notification that should happen. Accepts 'admin' or an empty string (admin only), 'user', or 'both' (admin and user). Default 'both'.

Returns

void

Source

File name: wordpress/wp-includes/user.php
Lines:

1 to 3 of 3
function wp_send_new_user_notifications( $user_id, $notify = 'both' ) {
  wp_new_user_notification( $user_id, null, $notify );
}
 

 View on GitHub View on Trac