WordPress at a glance
function is not described

wc_product_cat_class() WC 2.4.0

Display the classes for the product cat div.

No Hooks.

Return

null. Nothing.

Usage

wc_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_product_cat_class() WC 5.2.2

<?php
function wc_product_cat_class( $class = '', $category = null ) {
	// Separates classes with a single space, collates classes for post DIV.
	echo 'class="' . esc_attr( join( ' ', wc_get_product_cat_class( $class, $category ) ) ) . '"';
}