From: Laury GvR Date: Mon, 8 Aug 2016 16:01:00 +0000 (-0400) Subject: Remove reviews tab for woocommerce X-Git-Tag: v1.0.4^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=02467ff4d454371fbcc656432b3657e7f75659f0;p=WP-Themes%2Fthemoleholeonline.git Remove reviews tab for woocommerce Reviews tab disabled for woocommerce products pages. --- diff --git a/functions.php b/functions.php index aef0bab..199ee00 100644 --- a/functions.php +++ b/functions.php @@ -63,6 +63,13 @@ function tm_added_checkout_fields_email( $keys ) { return $keys; } +add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98); +function sb_woo_remove_reviews_tab($tabs) { + unset($tabs['reviews']); + + return $tabs; +} + // Add custom fields to order printouts function add_custom_fields_to_order_printout( $fields, $order ) { $new_fields = array();