• Hey guys,

    So I’ve created a custom registration system with the help of a tutorial, I’m having issues inserting custom fields, designed to capture extra user data who have registered, into the correct place in the wordpress database. According to the tutorial the code below will insert the new data into the database:

    $user_data = array(
    			'user_login'    => $email,
    			'user_email'    => $email,
    			'user_pass'     => $password,
    			'first_name'    => $first_name,
    			'last_name'     => $last_name,
    			'company'       => $company,
    			'industry'		=> $industry,
    			'nickname'      => $first_name,
    		);
    
    		$user_id = wp_insert_user( $user_data );

    but when I check the wp_users and wp_usermeta tables I can’t seem to find the extra data I’ve added through my plugin code.
    Thanks
    Zayd Bhyat

  • The topic ‘Custom Login’ is closed to new replies.