get_rating_count(); $review_count = $product->get_review_count(); echo flatsome_get_rating_html( $product->get_average_rating() ); // phpcs:ignore WordPress.Security.EscapeOutput if ( $rating_count > 0 ) : if ( get_theme_mod( 'product_box_review_count' ) ) : if ( comments_open() ) : $span_atts = array( 'class' => 'review-count is-small op-8', /* translators: %s: number of reviews */ 'aria-label' => esc_attr( sprintf( _n( '%s customer review', '%s customer reviews', $review_count, 'woocommerce' ), $review_count ) ), ); $review_count_html = sprintf( '(%2$s)', flatsome_html_atts( $span_atts ), esc_html( $review_count ) ); echo apply_filters( 'flatsome_loop_review_count_html', $review_count_html, $product ); // phpcs:ignore WordPress.Security.EscapeOutput endif; endif; endif;