wp_new_user_notification ( $user_id, $deprecated = null, $notify = '' )

  • (int) user_id User ID.
  • (null) deprecated Not used (argument deprecated).
  • (string) notify Optional. Type of notification that should happen. Accepts 'admin' or an empty string (admin only), 'user', or 'both' (admin and user). Default empty.
Defined at:
Change Log:
  • 4: .
  • 4: .
  • 4: .


Email login credentials to a newly-registered user.A new user registration notification is also sent to admin email.

Related Functions

wp_send_new_user_notifications, wp_new_blog_notification, wp_password_change_notification, update_user_option, get_user_option

Top Google Results

User discussions

wpseek mobile