post_class filter-hook . WC 1.0
Usage
add_filter( 'post_class', 'filter_function_name_8065', 10, 3 ); function filter_function_name_8065( $post_classes, $class, $product_id ){ // filter... return $post_classes; }
- $post_classes
- -
- $class
- -
- $product_id
- -
Where the hook is called
woocommerce/includes/wc-template-functions.php 639
$post_classes = apply_filters( 'post_class', $post_classes, $class, $product->get_id() );
Where in WP core the hook is used WooCommerce
woocommerce/includes/wc-template-functions.php 636
remove_filter( 'post_class', 'wc_product_post_class', 20 );
woocommerce/includes/wc-template-functions.php 642
add_filter( 'post_class', 'wc_product_post_class', 20, 3 );
woocommerce/includes/wc-template-hooks.php 14
add_filter( 'post_class', 'wc_product_post_class', 20, 3 );