WOOF - WooCommerce Products Filter

woof_get_more_less_button_XXXX

Use this hook to manipulate by the button view for “Not toggled terms count” feature on the site front.

XXXX – can be replaced to any word of the next words: color, radio, checkbox, label, image

add_filter('woof_get_more_less_button_label', 'woof_get_more_less_button');

    function woof_get_more_less_button($args)
    {
        $args['type'] = 'image';
        $args['closed'] = 'http://__YOUR_SITE_LINK__/wp-content/uploads/2013/05/open-sign.png';
        $args['opened'] = 'http://__YOUR_SITE_LINK__/icons/kyo-tux/delikate/512/Close-icon.png';

        return $args;
    }

OR

add_filter('woof_get_more_less_button_label', 'woof_get_more_less_button');

    function woof_get_more_less_button($args)
    {
        $args['type'] = 'text';
        $args['closed'] = 'Open me';
        $args['opened'] = 'Close me';

        return $args;
    }

 

From: v.2.1.6