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.

Parameters

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

Source File

classes/helper.php:1032

Code Example


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

Usage Notes

  • 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.