product_cat_class

product_cat_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('product_cat_class') is found 1 times:

  • /includes/wc-template-functions.php line 503
    	$classes   = is_array( $class ) ? $class : array_map( 'trim', explode( ' ', $class ) );
    	$classes[] = 'product-category';
    	$classes[] = 'product';
    	$classes[] = wc_get_loop_class();
    	$classes   = apply_filters( 'product_cat_class', $classes, $class, $category );
    
    	return array_unique( array_filter( $classes ) );
    }
    
    /**
     * Adds extra post classes for products via the WordPress post_class hook, if used.