wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_send_new_user_notifications › WordPress Function

Since4.4.0
Deprecatedn/a
wp_send_new_user_notifications ( $user_id, $notify = 'both' )
Parameters: (2)
  • (int) $user_id ID of the newly created user.
    Required: Yes
  • (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: No
    Default: 'both'
Defined at:
Codex:
Change Log:
  • 4.6.0

Initiates email notifications related to the creation of new users.

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


Source

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