Anyone know how to change a specific user language when they switch WPML language?
For Example the steps:
- The website default language is English.
- After admin create new user (User1), their default language when login is English (EN).
- User1 login.
- User1 use switching bar on the top to change the language from EN to DE.
- User1 logout.
- User1 login in the next time, the language is EN.
Expect result in step 6: the language should be DE.
I want to change the user language programmatically because the user not have permission to access their profile page.
Any ideas please?