woocommerce_template_single_rating()
Output the product rating.
No Hooks.
Returns
null
. Nothing (null).
Usage
woocommerce_template_single_rating();
woocommerce_template_single_rating() woocommerce template single rating code WC 9.8.5
function woocommerce_template_single_rating() { if ( ! post_type_supports( 'product', 'comments' ) || ! is_a( $GLOBALS['product'] ?? null, \WC_Product::class ) ) { return; } wc_get_template( 'single-product/rating.php' ); }