woocommerce_post_class

woocommerce_post_class

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_post_class') is found 1 times:

  • /includes/wc-template-functions.php line 727
    	 * @since 3.6.2
    	 * @param array      $classes Array of CSS classes.
    	 * @param WC_Product $product Product object.
    	 */
    	$classes = apply_filters( 'woocommerce_post_class', $classes, $product );
    
    	return array_map( 'esc_attr', array_unique( array_filter( $classes ) ) );
    }
    
    /**
     * Display the classes for the product div.