This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs an action or filter for the HREFLANG tag to check if the URL matches the canonical URL and add or remove the HREFLANG tags based on certain conditions.
Solution:
We currently do not have a filter that meets these specific requirements. To achieve this, custom code is necessary. We recommend using the code provided in the following WPML support forum thread as a starting point for your custom solution.
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 1 reply, has 2 voices.
Last updated by 12 months ago.
Assisted by: Shekhar Bhandari.