You don't need to do all this. As explained in the doc, it's as easy as replacing $mts_options['mts_trending_articles_cat']
by pll_get_term($mts_options['mts_trending_articles_cat'])
↧
Chouby on "How can I Make polylang Detect the language in this Code."
↧