woocommerce_rating_filter_count
Usage
add_filter( 'woocommerce_rating_filter_count', 'wp_kama_woocommerce_rating_filter_count_filter', 10, 3 ); /** * Function for `woocommerce_rating_filter_count` filter-hook. * * @param $string * @param $count * @param $rating * * @return */ function wp_kama_woocommerce_rating_filter_count_filter( $string, $count, $rating ){ // filter... return $string; }
- $string
- -
- $count
- -
- $rating
- -
Where the hook is called
woocommerce_rating_filter_count
woocommerce/includes/widgets/class-wc-widget-rating-filter.php 126
apply_filters( 'woocommerce_rating_filter_count', "({$count})", $count, $rating ),