Title: WP Create User
Last modified: August 19, 2016

---

# WP Create User

 *  [Mowee](https://wordpress.org/support/users/mowee/)
 * (@mowee)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-create-user/)
 * Hello there,
 * I’m using the function wp_create_user to create a new user. As long as I only
   create one user everything works fine. Now I tryed creat 200 users at once. I’m
   using the following the code. But my code only creates one user. Don’t know what
   I’m doing wrong.
 * [http://wordpress.pastebin.com/T6dpDmii](http://wordpress.pastebin.com/T6dpDmii)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [ucfknight10](https://wordpress.org/support/users/ucfknight10/)
 * (@ucfknight10)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-create-user/#post-1922778)
 * what is the output of $mitglied ?
 *  [Andrei Olsen](https://wordpress.org/support/users/nebulus/)
 * (@nebulus)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-create-user/#post-1922788)
 * Your problem is that the empty email is already registered (registration.php 
   line 143-144).
 * Add `define ('WP_IMPORTING', true);` to your code.
 *  Thread Starter [Mowee](https://wordpress.org/support/users/mowee/)
 * (@mowee)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wp-create-user/#post-1922806)
 * thank you very much. That was the problem.
 *  [iskh](https://wordpress.org/support/users/iskh/)
 * (@iskh)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/wp-create-user/#post-1923073)
 * hi, i am using wp 3.2v
    i also want to create usernames as simple as user1,user2…
   using a loop.and generate corresponding passwords randomly.
 * can u tell me where exactly (in which file)
    is it in this file ?
 * > wp-includes/user.php
 * where do i put
 * > wp_create_user
 * and
 * > define (‘WP_IMPORTING’, true);
 *  Thread Starter [Mowee](https://wordpress.org/support/users/mowee/)
 * (@mowee)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/wp-create-user/#post-1923089)
 * I just created a new file in the main directory. Thats where I put my code in
   to create the new user. There is no need to edit any existing files.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WP Create User’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 4 participants
 * Last reply from: [Mowee](https://wordpress.org/support/users/mowee/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/wp-create-user/#post-1923089)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
