wc_product_cat_class( string|array $class = '', object $category = null )
Display the classes for the product cat div.
Description Description
Parameters Parameters
- $class
-
(Optional) One or more classes to add to the class list.
Default value: ''
- $category
-
(Optional) object Optional.
Default value: null
Source Source
File: includes/wc-template-functions.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 ) ) ) . '"'; }
Changelog Changelog
Version | Description |
---|---|
2.4.0 | Introduced. |