For extension: Quick Search
Allows to change a column header of a table.
Example:
add_filter('woof_qs_get_template_structure', 'change_title');
function change_title($data) {
if (isset($data)) {
$data = "Price of the products";
}
return $data;
}
[...]
For extension: Quick Search
It is necessary to change the template parameters before loading the page – for example, depending on the device.
[...]
Allows manipulation by taxonomies blocks toggle state, for example make them closed on mobile devices:
add_filter('woof_block_toggle_state', function($block_is_closed) {
if (wp_is_mobile()) {
$block_is_closed = true;
}
return $block_is_closed;
});
[...]
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
[...]
[...]
This hook works in index.php of the plugin in public function woof_shortcode and allows to manipulate with ‘additional_taxes‘.
[...]
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';
});
[...]
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
[...]
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
[...]
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
[...]