HUSKY - Product Filter for WooCommerce

woof_html_types_view_radio

ver.2.2.4/1.2.4以降

このフックを使用すると、ファイルの表示を書き換えることができます: \views\html_types\radio.php

 

Parameters

$html (string) — テンプレートのHTML, $term_data (array) — タームデータ

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

  • このコードをテーマの functions.php ファイルまたはカスタムプラグインに追加してください。
  • このフックはフィルタリング処理中に適用され、変更はすぐに反映されます。
  • コールバック関数からは常に期待される値の型を返してください。