Background of the issue:
I am using Cookiebot as our consent managing platform and we always receive an error message when scanning the website, because the wp-wpml_current_language is loaded prior to the users consent. It is really important for us to set the cookie after the consent by making it not a functional but a "preferences" cookie - Cookiebot recommends using the following script ( ).
Symptoms:
Error message when scanning the website with Cookiebot because the wp-wpml_current_language is loaded prior to user consent.
Questions:
Can you help me which file to modify or where the script has to go in order to work?
Is there a way to fully deactivate the "current language" function and instead just set a default language and have WPML not set this cookie?