This thread is resolved. Here is a description of the problem and solution.
Problem: ICL_LANGUAGE_CODE is not working with Complianz plugin
Solution: It works after using *wpml_current_language* hook instead of ICL_LANGUAGE_CODE. Please check the sample.
$my_current_lang = apply_filters( 'wpml_current_language', NULL ); if($my_current_lang=='pt-br'){ //Custom code }
Relevant Documentation: https://wpml.org/wpml-hook/wpml_current_language/
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 is split from https://wpml.org/forums/topic/complianz-plugin-mixed-language-content-in-generated-documents/
This topic contains 2 replies, has 2 voices.
Last updated by kellyL-9 1 year, 10 months ago.
Assisted by: Bigul.