WOOT - WooCommerce Active Products Tables

Cyber Monday 2021
Cyber Monday 2021 timer

woot_current_lang

This hooks allows to manipulate by the current language.

Example:

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

    return $lang;
});