Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Ecommerce with WordPress and WooCommerce Managing Products in WooCommerce Product Reviews

Is it possible to entirely disable the reviews feature on the woocommerce plugin?

I would like to disable the product review feature - not just the ratings

Is it possible to do so with the woocommerece plugin?

1 Answer

Hi Shir, try adding this to functions.php. Also, you might check out this link for how to rearrange tabs.

add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98);
function sb_woo_remove_reviews_tab($tabs) {

 unset($tabs['reviews']);

 return $tabs;
}

Thanks Dustin! but how do I move the function.php file to my child-theme? I tried simply dragging it via Fille Zila and it will not quite work?

or would I have to paste it directly into the original theme function.php?

The functions.php file in the your child theme directory should be empty unless it's pluggable (replaceable) from the parent theme. For more information, see the WordPress Codex on Child Themes.