With Polylang, and surely WPML as well, when the "Ajaxify Widget" feature is enabled the WPP widget outputs posts in the default language (eg. English).
We need to pass the current language to the REST Controller (or retrieve it there?) so it returns popular posts in the currently active language.
With Polylang, and surely WPML as well, when the "Ajaxify Widget" feature is enabled the WPP widget outputs posts in the default language (eg. English).
We need to pass the current language to the REST Controller (or retrieve it there?) so it returns popular posts in the currently active language.