Astra_Woocommerce::rating_markup( string $html, float $rating, int $count )
Rating Markup
Description
Parameters
- $html
-
(string) (Required) Rating Markup.
- $rating
-
(float) (Required) Rating being shown.
- $count
-
(int) (Required) Total number of ratings.
Return
(string)
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function rating_markup( $html, $rating, $count ) {
if ( 0 == $rating ) {
$html = '<div class="star-rating">';
$html .= wc_get_star_rating_html( $rating, $count );
$html .= '</div>';
}
return $html;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.2.2 | Introduced. |