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;
		}

Changelog

Changelog
Version Description
1.2.2 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.