is_visible() ) { return $title; } $reviews_count = $product->get_review_count(); return sprintf( '%1$s %2$s', __( 'Reviews', 'brandy' ), sprintf( '%s', $reviews_count ) ); } public function gallery_thumbnail_size() { return array( 300, 300 ); } public function product_rating_html( $html, $rating, $count ) { global $product; if ( empty( $product ) ) { return $html; } ob_start(); if ( is_product() ) { brandy_get_rating_html( $product, $rating, $count, false, false, false ); } else { brandy_get_rating_html( $product, $rating, $count, true, false, false ); } $html = ob_get_contents(); ob_end_clean(); return $html; } } SingleProduct::get_instance();