Adding Users within a Loop
-
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:
- The topic ‘Adding Users within a Loop’ is closed to new replies.