How to detect login type? (FB/Google/basic wp login/…)
-
It is working if a user using only one type of login method:
if user logged in by facebook:
isset($current_user->wsl_current_provider) && isset($current_user->wsl_current_provider == “Facebook”)if by google:
isset($current_user->wsl_current_provider) && $current_user->wsl_current_provider == “Google”if normal login, none of them:
!isset($current_user->wsl_current_provider)But what should i do if same user logging in with multiple methods?
One day with “normal wp login”, one day with google, and if the parameters are the same (same email from the provider), wordpress will assign data to the same user, so although if the user logged in by normal way, the “wsl_current_provider” user meta will be isset in the database and will contain “google”…
I’d like to show different content for different login methods.
[srry for my english:)]
- The topic ‘How to detect login type? (FB/Google/basic wp login/…)’ is closed to new replies.