HUSKY - WooCommerce Products Filter Professional

woof_not_sort_checked_terms

This hook is placed in the index.php of the plugin in public function woof_sort_terms_is_checked and allows excluding of html-types from impact of the option “Lets checked terms will be on the top” if its activated:

$not_sort_terms = apply_filters('woof_not_sort_checked_terms', array('slider'));
Slider is excluded as its unlogical use it with “Lets checked terms will be on the top“. Returns array of types. Actual from v.2.1.7/1.1.7   [...]

woof_widget_title_tag

Use hook woof_widget_title_tag if you want to redefine title tag H3 for WOOF widget title to any another HTML tag. Example:

add_filter('woof_widget_title_tag', function($tag){
    return 'h4';
});
  [...]

woof_start_filtering_btn_txt

Hook for “Show products filter form” button which appears in the shortcode

 add_filter('woof_start_filtering_btn_txt', function($txt){
        return "Load form!!";
    });
From: v.2.1.6   [...]

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 = 'image';
        $args = 'http://__YOUR_SITE_LINK__/wp-content/uploads/2013/05/open-sign.png';
        $args = '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 = 'text';
        $args = 'Open me';
        $args = 'Close me';

        return $args;
    }
  From: v.2.1.6   [...]

woof_print_content_before_search_form

This hooks allows to print any content before items of the WOOF search-form. Example:

 add_filter('woof_print_content_before_search_form', function($content) {
        global $WOOF;
        if ($WOOF AND woof()->is_isset_in_request_data(woof()->get_swoof_search_slug()))
        {
            return $content . 'Found results: ' . do_shortcode('') . '<br /><br />';
        }

        return '';
    });
From: v.2.1.6   [...]

woof_main_query_tax_relations

This hook allows set logic ‘AND‘ for any taxonomies in the WOOF search request. Use it in your current wp theme functions.php file:

add_filter('woof_main_query_tax_relations', 'my_woof_main_query_tax_relations');

function my_woof_main_query_tax_relations()
{
    return array(
	   'product_cat' => 'AND'
    );
}
In the example above shown how to apply logic ‘AND‘ for products categories. The same possible to realize for more taxonomies on the same time:
add_filter('woof_main_query_tax_relations', 'my_woof_main_query_tax_relations');

function my_woof_main_query_tax_relations()
{
    return array(
	   'product_cat' => 'AND',
	   'product_tag' => 'AND',
	   'pa_color' => 'AND'
    );
}
Video: https://drive.google.com/file/d/0B4zUhfhZlonlNkVXMEZIdUxlWFU/view?usp=sharing [...]

woof_title_tag

Use hook woof_title_tag if you want to redefine title tag H4 for each taxonomies block to any another HTML tag. Example:

add_filter('woof_title_tag', function($tag){
    return 'h5';
});
  [...]

woof_text_autocomplete_items

How many posts should return autocomplete functionality for Text textinput

add_filter('woof_text_autocomplete_items', function($count){       
       return 5;
   });
[...]