WP for Wordpress

How to Rename or Remove Reviews Tab in WooCommerce 2+



Each WooCommerce installation will have the reviews tabs added to individual product pages. I noted that people are wanting to know how to turn this functionality off or If you are selling something which doesn’t needs this feature, you can easily remove the WooCommerce reviews tab off as reviews don’t really apply to all products in all shops. Adding this code to your theme functions.php file will remove the reviews tab.

add_filter( 'woocommerce_product_tabs', 'wpfw_woo_remove_reviews_tab', 98);
function wpfw_woo_remove_reviews_tab($tabs) {
unset($tabs['reviews']);
return $tabs;
}
----------- and if you want to Rename the text in review tab simply copy paste the following code to your functions.php add_filter( 'woocommerce_product_tabs', 'agentwp_woo_rename_reviews_tab', 98); function agentwp_woo_rename_reviews_tab($tabs) { $tabs['reviews']['title'] = 'Sausages'; return $tabs; }


Responses

0 Respones to "How to Rename or Remove Reviews Tab in WooCommerce 2+"

Post a Comment

AddThis

 

Recent Comments

Return to top of page Copyright © 2014