Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created January 10, 2013 14:03
Show Gist options
  • Save jameskoster/4502229 to your computer and use it in GitHub Desktop.
Save jameskoster/4502229 to your computer and use it in GitHub Desktop.
WooCommerce - display rating aggregate in product loop
add_action( 'woocommerce_after_shop_loop_item', 'wc_product_rating_overview', 15 );
if ( ! function_exists( 'wc_product_rating_overview' ) ) {
function wc_product_rating_overview() {
global $product;
echo $product->get_rating_html();
}
}
@devworkr
Copy link

fhfhf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment