I'm having a super hard time finding the names of the default user meta that's included with WPML. WPML has a setting for "Default Admin Language" under every user's profile. I'd like to access this on the front end so all my users are automatically switched to their selected language on login. I can't figure out the correct key to use to access the custom meta.
So far, I've tried:
<?php $user = wp_get_current_user(); echo get_user_meta($user->ID, 'icl_user_admin_language', true); ?>
<?php $user = wp_get_current_user(); var_dump(get_user_meta($user->ID, 'icl_user_admin_language')); ?>
but both of these options come up empty. I'm assuming it's because I'm not using the correct key for the user meta, but I've tried googling and I've even dug through the documentation, and I can't find mention of this. Anyone have some insight as to how I can grab the language that a user has set from the front end of the site?