WOOT - WooCommerce Active Products Tables

Cyber Monday 2021
Cyber Monday 2021 timer

woot_get_calendar_names

The hook used for in calendar months names in helper.php.

//for calendar strings
add_filter('woot_get_calendar_names', function($names) {
    return [
        'month_names' => [
            WOOT_Vocabulary::get(esc_html__('January', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('February', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('March', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('April', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('May', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('June', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('July', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('August', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('September', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('October', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('November', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('December', 'woot-products-tables'))
        ],
        'month_names_short' => [
            WOOT_Vocabulary::get(esc_html__('Jan', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Feb', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Mar', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Apr', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('May', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Jun', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Jul', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Aug', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Sep', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Oct', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Nov', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Dec', 'woot-products-tables'))
        ],
        'day_names' => [
            WOOT_Vocabulary::get(esc_html__('Mo', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Tu', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('We', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Th', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Fr', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Sa', 'woot-products-tables')),
            WOOT_Vocabulary::get(esc_html__('Su', 'woot-products-tables'))
        ]
    ];
});