WordPress.org

Ready to get started?Download WordPress

Forums

Adding Users within a Loop (1 post)

  1. Chris Sanders
    Member
    Posted 3 years ago #

    I'm trying to add users from an array and the add_new_user function within the loop doesn't seem to be working.

    When I run it the first time, the first user is created (I see both dialog boxes), but the second user displays the first dialog box (before the create user)- but doesn't display the second dialog box.

    If I run it a second time, the first user displays the username exist dialog box, it then iterates and displays the first dialog box (before create user), but again- doesn't display the second dialog box so it has to be an issue with wp_create_user. The variables have been checked and should be okay. I'd appreciate any suggestions.

    Code is in the pastebin:

    http://wordpress.pastebin.ca/2051226

Topic Closed

This topic has been closed to new replies.

About this Topic