This thread is resolved. Here is a description of the problem and solution.
Problem:
How to set the WordPress user's language based on a parameter in a database instead of using URL parameters.
Solution:
If you're trying to set up the language for users based on a database parameter rather than through URL parameters, we recommend updating the language code value in the
icl_admin_language
meta_key within the wp_usermeta database table. You can achieve this by writing a custom function tailored to your specific needs. For more information on setting the WordPress administration language, please refer to our documentation: Setting the WordPress Administration Language.
Please note that this solution might not be applicable to your situation if it has changed since this response, or if it does not match your specific case. We highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please do not hesitate to open a new support ticket with us for further assistance.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.