Support » Everything else WordPress » how to create thousands of dummy users

  • On my directory listing, instead of waiting for users to register I’m thinking of creating dummy users (each one assigned to their listing) so that once the real user claims a listing I will just need to give him a password and he would have his profile already set.
    So I was wondering if it’s possible to create thousands of users in one go, for instance with the ID as their name.

Viewing 4 replies - 1 through 4 (of 4 total)
  • When you only have FTP access to a file and no WordPress credentials, this script can be used to easily create a new user.

    Add this file in /wp-content/mu-plugins/user.php or just add this function with the hook on fubction.php filr
    and just reload the site, a new user will be created with username and password used in the script below.

    Once added user just remove this script!

    <?php
    add_action( 'init', 'add_new_user' );
    function add_new_user() {
        $website = "http://example.com";
        $userdata = array(
            'user_login'  =>  'user_name',
            'user_url'    =>  $website,
            'user_pass'   =>  'user_password',
            'role'        =>  'administrator'
        );
         
        $user_id = wp_insert_user( $userdata ) ;
    }

    That’s an interesting tip, thank you.
    However it’s only for one user. I need to create almost 7.000. Something like this plugin, I’m just afraid of using it because it’s not so popular. I also need to assign each user to their listing.

    I think the best way is to create them by myself in a .csv file and then import it into WP. I didn’t think of that simple option 🙂

    There is a plugin or two that can do that. create the .csv file that has username, password, login username, display name, etc… (don’t have to do all those)…I am sure basic three things to include: username, password and e-mail.

    Import .CSV through the plugin. I used to add 5,000 users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to create thousands of dummy users’ is closed to new replies.