1 2 3 4 5 6 7 8 |
/**Disable review tab in product page*/ add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98); function sb_woo_remove_reviews_tab($tabs) { unset($tabs['reviews']); return $tabs; } |
1 2 3 4 5 6 7 8 9 10 11 |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { //unset( $tabs['description'] ); // Remove the description tab unset( $tabs['reviews'] ); // Remove the reviews tab //unset( $tabs['additional_information'] ); // Remove the additional information tab return $tabs; } |