WordPress at a glance
filter is not described

woocommerce_post_class filter-hook . WC 3.6.2

WooCommerce Post Class filter.

Usage

add_filter( 'woocommerce_post_class', 'filter_function_name_246', 10, 2 );
function filter_function_name_246( $classes, $product ){
	// filter...

	return $classes;
}
$classes(array)
Array of CSS classes.
$product(WC_Product)
Product object.

Changelog

Since 3.6.2 Introduced.

Where the hook is called

wc_get_product_class()
woocommerce_post_class
woocommerce/includes/wc-template-functions.php 714
$classes = apply_filters( 'woocommerce_post_class', $classes, $product );

Where in WP core the hook is used WooCommerce

Usage not found.