This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to override the language redirection based on the country's IP address using a custom plugin, but it is not consistently working.
Solution:
We explained that WPML does not support redirection based on the country's IP address nor does it provide a hook for such functionality. We only support redirection based on browser language, which can be found here: Automatic redirect based on browser language.
For custom requirements like redirecting users from specific countries to specific languages, we recommended seeking assistance from developers who specialize in custom coding. You can find qualified contractors on our page: WPML Contractors. Additionally, reviewing similar cases might be beneficial, such as this one: Country-based redirect discussion.
If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to open a new support ticket or visit our support forum 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.
This topic contains 3 replies, has 3 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Marsel Nikolli.