HUSKY - Product Filter for WooCommerce

woof_html_types_view_checkbox

Sürüm 2.2.4/1.2.4'ten itibaren

Bu hook kullanılarak şu dosyanın görünümü yeniden yazılabilir: \views\html_types\checkbox.php

 

Parametreler

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

Kaynak Dosya

views/html_types/checkbox.php

Kod Örneği


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

Kullanım Notları

  • Bu kodu temanızın functions.php dosyasına veya özel bir eklentiye ekleyin.
  • Hook, filtreleme işlemi sırasında uygulanır — değişiklikler hemen geçerli olur.
  • Geri çağırma işlevinden her zaman beklenen değer türünü döndürün.