In your 'User Explorer' there is data stating "Login from United Kingdom"
How can I save this country data into the users wordpress profile when they log in to my site?
Please sign in to your OneAll account to take part in the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers
Hello,
you can start with a hook like this:
http://docs.oneall.com/plugins/guide/social-login-wordpress/#3b
The data that you are looking for is in
$identity->loginLocation->country->short
Regards,
Hi Claude,
The following code works when registering a new user, though I wonder is it possible to update the country field every time a user logs in?
Hi James,
for this you can use the following action/hook:
oa_social_login_action_before_user_login
In the variable
$identity->loginLocation
you can also find other properties like for example the ip address or the full country name.
Great, that's looks like it's worked so I have just one more question...
If I understand correctly this country data is taken from the IP, which is outside of the social network being logged into?
I ask so that I know how to define our web privacy terms and app requests from facebook.
Yes, the country is based on the IP address.