HUSKY - Product Filter for WooCommerce

woof_button_css_classes

Filters the CSS classes applied to the "Start filtering" button element on the frontend. By default the class is woof_button. Use this filter to add your own CSS classes for custom styling or JavaScript hooks.

Parameters

(string) — The default CSS classes. Default: woof_button.

Source File

views/woof.php, line 622

Code Example


add_filter("woof_button_css_classes", function ($classes) {
    $classes .= " my-custom-button-class";
    return $classes;
});

Usage Notes

  • Add this code to your theme's functions.php file or a custom plugin.
  • The classes are applied via esc_attr() for security.
  • The button only appears when the start_filtering_btn option is enabled and no search has been performed yet.