Select Page

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;
}