• Hello wordpress community!

    I need to get a new user name and most import. email when a account is created.

    As far as I know user_register can be used but I had no luck so far.
    Thank you for your time.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You can use the ‘user_register’ action to get the new user ID, then use get_userdata() to get the user’s data, which can be emailed with wp_mail(). None of that should be necessary, WP by default should email the admin when a new user registers with the username and registered email.

Viewing 1 replies (of 1 total)
  • The topic ‘get email out of user_register’ is closed to new replies.