HUSKY - Product Filter for WooCommerce

woof_generate_container_css_classes

Filters the CSS class name used for filter section containers, allowing customization of container styling per filter section key.

Parameter

$section_key (string) — The section key identifier (e.g. 'by_featured', 'by_onsales', taxonomy slug, etc.)

Quelldatei

classes/helper.php:1032

Codebeispiel


add_filter('woof_generate_container_css_classes', function($key) {
    return $key . ' my-custom-wrapper';
});

Verwendungshinweise

  • A static helper method widely used across all view templates to generate container CSS classes.
  • The default simply returns $section_key unchanged.
  • Useful for targeting specific filter containers with custom CSS.