Problem: The client is trying to translate the SEO page title and description set by Yoast SEO. Solution: We have created a video tutorial to help you find and translate the SEO metadata for product taxonomies (categories). You can watch the video here:
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.