Remove the Reviews or Additional information tab, rename Description, and change the order the tabs appear in.
add_filter( 'woocommerce_product_tabs', function ( array $tabs ): array {
// Remove a tab.
unset( $tabs['additional_information'] );
// Rename a tab.
if ( isset( $tabs['description'] ) ) {
$tabs['description']['title'] = 'Details';
}
// Reorder: lower numbers come first.
if ( isset( $tabs['reviews'] ) ) {
$tabs['reviews']['priority'] = 5;
}
return $tabs;
}, 98 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
The tabs under each product (Description, Additional information and Reviews) are WooCommerce defaults. This snippet shows how to remove one, rename one and change their order.
WooCommerce builds the tabs from the woocommerce_product_tabs filter. Each tab has a key, a title, a priority that sets the order (10, 20 and 30 by default) and a callback that prints its content.
The snippet runs at priority 98 so it applies after plugins that add their own tabs.
$product->get_review_count() if you want it.Open a product page. The Additional information tab should be gone, Description should be called Details, and Reviews should come first.