WPML API Hooks - replace "get_ls_languages" with more future-proof "wpml_active_languages"
andreasneuber opened this issue · comments
Andreas Neuber commented
By the time this plugin was created WPML didn't provide yet the "WPML API Hooks" it has now - https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
Though there are no plans to deprecate the "get_ls_languages" method anytime soon, its more "future-proof" to replace it with WPML API hook "wpml_active_languages". https://wpml.org/wpml-hook/wpml_active_languages/
Stanislav Khromov commented
Thanks for the PR!
Andreas Neuber commented
You welcome :-)