This thread is resolved. Here is a description of the problem and solution.
Problem:
The client wants to get the current language using the wpml_current_language hook but it was not working.
Solution:
There was a logical error in the client code, either use the global keyword to access the variable that is defined outside of the function definition or use the wpml_current_language filter inside the function.
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 4 replies, has 2 voices.
Last updated by 1 year, 11 months ago.
Assisted by: Noman.