Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are developing a site and want Buddyboss users to set their preferred language in the account settings, but you are unsure how to implement this feature.
Solution:
We recommend the following steps to allow Buddyboss users to set their preferred language:
1) Add a dropdown menu in their account settings or profile where they can pick their preferred language, using either a regular WP language field or a custom profile field.
2) Ensure that the site saves their language choice (e.g., 'fr' for French) into the database, attached to their user meta.
3) When the user logs in, have the site check their language choice and switch the website language accordingly. You can use the

wpml_switch_language()

function for this. More details can be found here: https://wpml.org/wpml-hook/wpml_switch_language/

Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this solution does not resolve your issue, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Dražen 3 weeks, 3 days ago.

Assisted by: Dražen.

Author Posts
July 14, 2025 at 9:16 pm #17235727

ericH-23

Background of the issue:
I am developing a site and want Buddyboss users to set their preferred language in the account settings. I am looking for a possibility or custom code to achieve this.

Symptoms:
No specific issue or error message mentioned.

Questions:
Is there a possibility for Buddyboss users to set their preferred language in the account settings?
Is there custom code available to allow Buddyboss users to set their preferred language?

July 17, 2025 at 6:22 am #17243983

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

It should be possible, but this is something that requires custom coding and would also need to be checked with Budyboss on best implantation. From WPML side, I can share an example steps on how it can be achived, but I am afraid we can not help with custom coding:

1) Add a dropdown menu (in their account settings or profile) where they can pick their preferred language, either by regular WP language field or custom profile field

2) Behind the scenes, the site saves their choice (for example: fr for French) into the database, attached to that user meta.

3) When the user logs in, the site checks their choice and switch website language. Use wpml_switch_language()

- https://wpml.org/wpml-hook/wpml_switch_language/

Hope this helps.

Regards,
Drazen