WOOT - Tabelle dei prodotti attivi di WooCommerce

woot_current_lang

Questo hook consente di manipolare dalla lingua corrente.

Esempio:

add_filter('woot_current_lang', function($lang) { if (class_exists('SitePress')) { global $sitepress; $sitepress->switch_lang(substr($lang, 0, 2), true); } return $lang; });