projects
/
WP-Themes
/
themoleholeonline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c5de8
)
Remove reviews tab for woocommerce
author
Laury GvR
<laury@gaslightmedia.com>
Mon, 8 Aug 2016 16:01:00 +0000
(12:01 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Mon, 8 Aug 2016 16:01:00 +0000
(12:01 -0400)
Reviews tab disabled for woocommerce products pages.
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
aef0bab
..
199ee00
100644
(file)
--- 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();