product_cat_class
Usage
add_filter( 'product_cat_class', 'wp_kama_product_cat_class_filter', 10, 3 ); /** * Function for `product_cat_class` filter-hook. * * @param $classes * @param $class * @param $category * * @return */ function wp_kama_product_cat_class_filter( $classes, $class, $category ){ // filter... return $classes; }
- $classes
- -
- $class
- -
- $category
- -
Where the hook is called
product_cat_class
woocommerce/includes/wc-template-functions.php 503
$classes = apply_filters( 'product_cat_class', $classes, $class, $category );