• 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

Viewing 5 replies - 1 through 5 (of 5 total)
  • what is the output of $mitglied ?

    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

    (@mowee)

    thank you very much. That was the problem.

    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

    (@mowee)

    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.