From 46ca8c033306680096106d0ae847bb5b9d92eb02 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 19 Nov 2015 13:00:06 -0500 Subject: [PATCH] Removing product reviews tab --- functions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/functions.php b/functions.php index 092bfd1..e505b29 100644 --- a/functions.php +++ b/functions.php @@ -8,14 +8,10 @@ /** * Initialize all the things. */ +remove_action( 'woocommerce_product_tabs', 'woocommerce_product_reviews_tab', 30); +remove_action( 'woocommerce_product_tab_panels', 'woocommerce_product_reviews_panel', 30); require get_stylesheet_directory() . '/inc/init.php'; -add_filter( 'woocommerce_product_tabs', 'wcs_woo_remove_reviews_tab', 98 ); -function wcs_woo_remove_reviews_tab($tabs) { - unset($tabs['reviews']); - return $tabs; -} - /** * Do not add custom code / snippets here. * While Child Themes are generally recommended for customisations, in this case it is not -- 2.17.1