HUSKY - Product Filter for WooCommerce

woof_html_types_view_checkbox

From ver.2.2.4/1.2.4

Using this hook it is possible to rewrite view of file: \views\html_types\checkbox.php

 

Parameters

$html (string) — the template HTML, $term_data (array) — term data

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.