跳转至内容 跳转至侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

支持人员时区: Asia/Karachi (GMT+05:00)

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 koon-aikG 1 years前 更新。

协助者:: Waqas Bin Hasan.

作者 帖子
16 7 月, 2024 于 6:21 上午 #15958197

koon-aikG

Background of the issue:
We have a site where we utilize the language switcher functionality of WPML: 隐藏链接. We link to this site using tracking URL parameters, and those URLs are not language-specific. We want to ensure that the site switches to the user’s current language while maintaining the URL parameters. Our main thought was to base it off of the current language cookie, but all of the hooks we’ve tried fire after that cookie has already been set. We are following this documentation: https://wpml.org/documentation/support/browser-cookies-stored-wpml/

Symptoms:
The site does not switch to the user’s current language while maintaining the URL parameters.

Questions:
What is the best way to ensure that the site switches to the user’s current language while maintaining the URL parameters?

主题 “[關閉] Non language-specific URL with parameters auto-switching to user's language” 已关闭,不接受新回复。