HUSKY - Product Filter for WooCommerce

woof_filter_search_slug

Filters the URL slug used for WOOF filter parameters in the query string, allowing customization of the search slug (default is typically 'swoof').

Parameters

$slug (string) — The default filter search slug derived from plugin options

Source File

index.php:717

Code Example


add_filter('woof_filter_search_slug', function($slug) {
    return 'product_filter';
});

Usage Notes

  • Called as a fallback when the function woof_get_slug() does not exist.
  • The front_builder extension may register this filter via include_once on line 709.
  • Used throughout the plugin to build filter URLs and parse request data.