WOOT - WooCommerce Active Products Tables

woot_table_classes

This hook allows to add CSS classes to the table container.

Example:

add_filter('woot_table_classes', function($args) {

    if (!isset($args['classes'])) {
        $args['classes'] = '';
    }

    if (isset($args['show_cart']) AND intval($args['show_cart'])) {
        $args['classes'] .= ' woot-woocommerces-show-cart';
    } else {
        if (isset($args['id'])) {
            if (WOOT::get_table_action($args['id']) === self::$action) {
                $args['classes'] .= woot()->columns->options->get($args['id'], 'is_cart_shown', 0) ? 'woot-woocommerces-show-cart' : '';
            }
        }
    }

    return $args;
}, 10, 1);