WordPress at a glance
function is not described

wc_get_product_cat_class() WC 2.4.0

Get the classes for the product cat div.

Hooks from the function
Return

Array. Nothing.

Usage

wc_get_product_cat_class( $class, $category );
$class(string|array)
One or more classes to add to the class list.
$category(object)
object Optional.

Changelog

Since 2.4.0 Introduced.

Code of wc_get_product_cat_class() WC 5.2.2

<?php
function wc_get_product_cat_class( $class = '', $category = null ) {
	$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 ) );
}