wp_send_new_user_notifications ( $user_id, $notify = 'both' )

  • (int) user_id ID of the newly created user.
  • (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'.
Defined at:
Change Log:
  • 4: .


Initiates email notifications related to the creation of new users.Notifications are sent both to the site admin and to the newly created user.

Related Functions

wp_new_user_notification, wpmu_signup_user_notification, wp_new_blog_notification, wpmu_welcome_user_notification, wpmu_new_site_admin_notification

Top Google Results

User discussions

wpseek mobile