HUSKY - Product Filter for WooCommerce

woof_get_front_css_file_link

Filters the URL to the main frontend CSS file, allowing replacement of the default stylesheet with a custom one.

Parameters

$link (string) — The default URL to the front.css file (WOOF_LINK . 'css/front.css')

Source File

classes/hooks.php:11

Code Example


add_filter('woof_get_front_css_file_link', function($link) {
    return get_stylesheet_directory_uri() . '/css/my-woof-front.css';
});

Usage Notes

  • A static method in the WOOF_HOOKS utility class.
  • Allows themes or child themes to completely replace the plugin's frontend CSS.
  • The constant WOOF_LINK points to the plugin's base URL.