Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
WooCommerce - hide ratings on product loop
// Remove the product rating display on product loops
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );

human-a commented Jan 26, 2013

This is great

bars38 commented Mar 31, 2013

Thank you!

samkent commented Mar 26, 2015

You rock!

jsvini commented Apr 8, 2015

Thanks!

jgraffin commented Jan 8, 2016

Thanks! And what about ratings on current product?

Thank you!
For removing rating on single product:
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10);

@ghost

ghost commented Mar 23, 2016

Thanks!

Hi @eisenheim94,

I tried using -> remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10);

but the ratings in the reviews tab are still showing.

Can you please help me with the code.

Thank you.

@eisenheim94,

I am having the same issue remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10); code is not working and I am getting duplicate ratings when I reinsert it with add_action.

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