-
The social login with facebook, twitter, and gmail all don’t return the email of the user, but intead something like “10024@randomsocialuser.rnd” instead of giving a real email. I see that in functions.php you have this code here:
$userdata = array( ‘user_email’ => $newuid.”@randomsocialuser.rnd”,
‘user_login’ => $login,
‘nickname’ => $_SESSION[‘social_user’][‘name’],
‘first_name’ =>$_SESSION[‘social_user’][‘name’],
‘display_name’ => $_SESSION[‘social_user’][‘name’],
‘rich_editing’ => true,
‘role’ => ‘contributor’
);
$new_user_id = wp_insert_user( $userdata ); // A new user has been createdHow can i fix this so that the social login options actually return a valid email that can be used on the website?
Kind regards,
Tim
-
Please use the search before making a post. Your question maybe be already answered!
-
Do you need customization work? Are you having trouble installing Wordpress? Feeling lazy and want somebody else to do the hard work for you?
Join our discord!
Need hosting?
Follow us!