woof_html_types_view_radio
From ver.2.2.4/1.2.4
Using this hook it is possible to rewrite view of file: \views\html_types\radio.php
Parameters
$html (string) — the template HTML, $term_data (array) — term data
Source File
views/html_types/radio.php
Code Example
add_filter('woof_html_types_view_radio', function($html, $term_data) {
// Style radio buttons as beautiful chips/pills
$custom = '';
$custom .= $html;
$custom .= '';
return $custom;
}, 10, 2);
Usage Notes
- Add this code to your theme's
functions.phpfile 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.