Skip to content Skip to sidebar

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 2 voices.

Last updated by Bobby 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
September 18, 2023 at 10:03 pm #14415575

craigK-2

Tell us what you are trying to do?
I am trying to preserve the user's language selection after the user has logged out.

We are trying to see if we can take the user back to the homepage after logging out, to say,
hidden link (if the user has selected French before the logout)
instead of
hidden link

Are there are features in WPML which can help me achieve this?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

The uploaded image depicts when I moused over the logout button (green button on the top right of the page).

Logging out and user language selection.png
September 19, 2023 at 12:27 am #14415651

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hello,

There is no feature out of the box at the moment that would allow for this functionality. In order to achieve this you will need some custom work.

My recommendation is to review our hook library which will allow you to tap into the WPML Hooks for any custom work.

https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

Please note that we currently are not able to provide support for custom work within this forum. If more help is needed with custom work we suggest contacting one of our 3rd party contractors that specialize in custom work with WPML
https://wpml.org/contractors/

September 19, 2023 at 6:26 pm #14423277

craigK-2

Thank you for the reply. I will discuss this with my team.