Hi,
I have added a line to the facebook functions file that will allow you to customize user data before it is added to wordpress. Please replace your framework/functions/facebook_login.php content with the one from this file: https://archived.seventhqueen.com/files/facebook_login.txt
After that you are able to modify the data that is saved for the user with a filter added to your sweetdate-child/functions.php
COPY CODE
add_filter('kleo_fb_register_data', 'kleo_custom_fb_data');
function kleo_custom_fb_data($userdata)
{
/*
* $userdata is an array with the values that will be saved and looks like this:
$userdata = array(
'user_login' => 'facebook_user',
'user_email' =>'emailfrom@facebook.com',
'user_pass' => 'already_generated_pass',
'display_name' =>'My nice name');
*/
//change user data example
$userdata['display_name'] = 'Not a real name';
$userdata['user_login'] = 'generate_me_an_unreal_username';
return $userdata;
}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution