HUSKY - Products Filter Professional for WooCommerce

woof_html_types_view_checkbox

woof_html_types_view_checkbox

Позволяет переопределить шаблон отображения для checkbox-типа фильтра. Используется для полной кастомизации HTML-верстки.

Parameters

$html (string) — HTML шаблона, $term_data (array) — данные термина

Source File

views/html_types/checkbox.php

Code Example

add_filter('woof_html_types_view_checkbox', function($html, $term_data) {
    // Wrap checkbox in custom HTML structure
    $custom_html = '';
    return $custom_html;
}, 10, 2);

Usage Notes

  • Add this code to your theme's functions.php file or a custom plugin.
  • The hook is applied during the filtering process — changes take effect immediately.
  • Always return the expected value type from the callback function.