woocommerce_product_get_rating_html

woocommerce_product_get_rating_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_product_get_rating_html') is found 1 times:

  • /includes/wc-template-functions.php line 3704
    		$label = sprintf( __( 'Rated %s out of 5', 'woocommerce' ), $rating );
    		$html  = '<div class="star-rating" role="img" aria-label="' . esc_attr( $label ) . '">' . wc_get_star_rating_html( $rating, $count ) . '</div>';
    	}
    
    	return apply_filters( 'woocommerce_product_get_rating_html', $html, $rating, $count );
    }
    
    /**
     * Get HTML for star rating.
     *
     * @since  3.1.0