From: Anthony Talarico Date: Thu, 19 Nov 2015 18:00:06 +0000 (-0500) Subject: Removing product reviews tab X-Git-Tag: v1.0.0^2~93 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=46ca8c033306680096106d0ae847bb5b9d92eb02;p=WP-Themes%2Fthemoleholeonline.git Removing product reviews tab --- 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