HUSKY - Products Filter Professional for WooCommerce

woof-html-types-view-radio

woof_html_types_view_radio

ラジオタイプのフィルターの表示テンプレートを上書きできます。

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