get_review_count(); $label = sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $rating ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment $style = get_theme_mod( 'product_info_review_count_style', 'inline' ); // Default to 'simple' when review count visibility is disabled. $style = get_theme_mod( 'product_info_review_count' ) ? $style : 'simple'; if ( $rating > 0 ) { switch ( $style ) { case 'tooltip': $title = sprintf( _n( '%s customer review', '%s customer reviews', $review_count, 'woocommerce' ), $review_count ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment $html = ''; $html .= ''; $html .= ''; break; case 'inline': $html = ''; break; case 'stacked': $html = ''; break; case 'simple': $html = ''; $html .= ''; $html .= ''; break; } } else { $html = ''; } return apply_filters( 'woocommerce_product_get_rating_html', $html, $rating, $count ); }