woof_get_more_less_button_XXXX
Используйте этот хук для управления видом кнопки для функции “Not toggled terms count” на фронтенде сайта.
XXXX — можно заменить на любое из следующих слов: 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;
}
ИЛИ
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;
}
С версии: v.2.1.6