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 thread is resolved. Here is a description of the problem and solution.
Problem: The user asks for WPML hooks that will help him implement some custom REST API endpoint Solution: We can use the following hooks to retrieve language data or switch language during the request "wpml_active_languages" and "wpml_switch_language" Relevant Documentation: https://wpml.org/wpml-hook/ https://wpml.org/wpml-hook/wpml_active_languages/ https://wpml.org/wpml-hook/wpml_switch_language/