//Social Login Handle data retrieved from a social network profile
function oa_social_login_store_extended_data ($user_data, $identity) {
update_user_meta ($user_data->ID, 'locale', $identity->locale);
update_user_meta ($user_data->ID, 'timezone', $identity->timezone);
}
add_action ('oa_social_login_action_after_user_insert', 'oa_social_login_store_extended_data', 10, 2);
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers
no locale and time zone and not located there:
update_user_meta ($user_data->ID, 'locale', $identity->locale); update_user_meta ($user_data->ID, 'timezone', $identity->timezone);
Please have a look here for the identity format:
https://docs.oneall.com/api/basic/identity-structure/