AgentWP

  • Tutorials
  • Themes
  • Plugins
  • Services
  • Contact

Rename or Remove Reviews Tab in WooCommerce 2+

Just like comments in WordPress posts and pages, WooCommerce products have a ‘reviews’ tab which lets the users post reviews about the respective product.

woocommerce reviews tab

If you are selling something which doesn’t needs this feature, you can easily remove the WooCommerce reviews tab. Just add this code to your functions.php file,

add_filter( 'woocommerce_product_tabs', 'agentwp_woo_remove_reviews_tab', 98);
function agentwp_woo_remove_reviews_tab($tabs) {
unset($tabs['reviews']);
return $tabs;
}

You can also rename the ‘reviews’ tab in WooCommerce to something else that suits your niche. To do that, add this code to your functions.php file,

add_filter( 'woocommerce_product_tabs', 'agentwp_woo_rename_reviews_tab', 98);
function agentwp_woo_rename_reviews_tab($tabs) {
$tabs['reviews']['title'] = 'Sausages';
return $tabs;
}

I hope you can now rename or remove the reviews tab in WooCommerce 2+. If you face any issues using the code above or if you have any questions, you can post it below.

Get useful WordPress related tricks, tips, tutorials and reviews delivered straight to your inbox.

StudioPress - Premium Wordpress Themes
ElegantThemes - Premium Wordpress Themes

Copyright © 2023 · AGENTWP · All Rights Reserved

Copyright © 2023 · awp on Genesis Framework · WordPress · Log in