• Hi there guys, I’m trying to create a form is submited.
    The code I used to test is this:

    $userdata = array(
    	'user_login' => 'login',
    	'user_email' => '[email protected]',
    	'user_pass' => wp_hash_password('123456'),
    	'user_url' => 'https://none.com',
    	'display_name' => 'John Doe',
    	'description' => '',
    	'role' => 'author'
    );
    
    $user_id = wp_insert_user( $userdata );

    Nothing happened!

    Tried with wp_create_user() and nothing happened too!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_insert_user Not Working’ is closed to new replies.