Edit the Description and Reviews Tabs in WooCommerce Products

WooCommerce products by default show  ‘description‘ and ‘reviews‘ tabs below the product on a WordPress product page, you can Edit these tabs from view as well as a third tab ‘additional information‘ with a snippet of code that goes in your themes functions.php file.

//Rename WooCommerce Tabs - this code renames tabs - just include the tab line you want renamed and change the name in paranthesis, ie 'More Information' etc

add_filter( 'woocommerce_product_tabs', 'codeithub_woo_rename_tabs', 98 );

function codeithub_woo_rename_tabs( $tabs ) {

	$tabs['description']['title'] = __( 'More Information' );		// Rename the description tab
	$tabs['reviews']['title'] = __( 'Ratings' );				// Rename the reviews tab
	$tabs['additional_information']['title'] = __( 'Product Description' );	// Rename the additional information tab

	return $tabs;

}

Before:

See also  How to Add Expires Header to htaccess
Product Page Tabs

After:

Rename the Product Page Tabs

Leave a Reply

Your email address will not be published. Required fields are marked *