is_visible() ) { return $title; } $reviews_count = $product->get_review_count(); return sprintf( '%1$s %2$s', __( 'Reviews', 'brandy' ), sprintf( '%s', $reviews_count ) ); } public function woocommerce_template_single_price_and_rating() { ?>
$rating, 'count' => $count, 'only_stars' => false, 'total_reviews' => false, ) ); $html = ob_get_contents(); ob_end_clean(); return $html; } } SingleProduct::get_instance();