How to Remove Reviews Tab in WooCommerce Product Page

Via:MyTutorialGuru.com

In one of our recent online shopping project, client request us to disable the reviews tab from the product details page. You might also want the same result, that’s why you landed on this page. Here is the solution. Just add the following code in your theme’s functions.php file and that’s all.

add_filter( ‘woocommerce_product_tabs’, ‘wcs_woo_remove_reviews_tab’, 98 );
function wcs_woo_remove_reviews_tab($tabs)
unset($tabs[‘reviews’]);
return $tabs;

Advertisements

Posted on September 8, 2015, in Uncategorized and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: