woocommerce_template_loop_rating

Display the average rating in the loop.

Description

woocommerce_template_loop_rating(); 

Usage

  1. if ( !function_exists( 'woocommerce_template_loop_rating' ) ) { 
  2. require_once '/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = woocommerce_template_loop_rating(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_template_loop_rating() { 
  2. wc_get_template( 'loop/rating.php' );