Support » Fixing WordPress » wp_create_user not saving user email?

  • Resolved Dandy Plow

    (@dandy-plow)


    Was just creating a basic registration page and using:

    $user_id = wp_create_user($_POST['username'], $_POST['password'], $_POST['theemail']);

    This creates a user as expected, but the email is not being stored. I’ve tried replacing $_POST[‘theemail’] with a static string rather than the variable to test, and still, user is created, but without an email address.

    Am I overlooking something or could this be a bug with the latest upgrade?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_create_user not saving user email?’ is closed to new replies.