Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter( 'woocommerce_product_get_rating_html', 'ast_remove_zero_rating', 11, 3 );
- // Hiding zero review starts from shop page products.
- function ast_remove_zero_rating( $html, $rating, $count ) {
- if( 0 === $rating && is_shop() ) {
- return '';
- }
- return $html;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement