Puddinq.com sharing knowledge

WPML switch backend language on language switch

WPML switch backend language on language switch

Since wp 4.7 the backend language is changed by changing the language in your userprofile. Using WPML, if you change the site language or post-, page language, the backend language is not changing. The code below changes the site language when changing the wpml language selector.