Want to know what WordPress Theme a site is using? Check Out Now!

How to Rename Data Tabs in WooCommerce Single Product Page?

Do you want to rename the data tabs appearing at the bottom of your WooCommerce single product page?

By default, WooCommerce adds three tabs to display related product data. This includes a detailed description of the product, user reviews, and additional information (if any).

You may want to use a different name for these data tabs in WooCommerce.

You can use the below code to rename the data tabs on the single product page in WooCommerce.

/**
 * Rename product data tabs
 */
add_filter( 'woocommerce_product_tabs', 'maverick_rename_woocommerce_single_product_tabs', 98 );
function maverick_rename_woocommerce_single_product_tabs( $tabs ) {

    // Rename the description tab
	$tabs['description']['title'] = __( 'More Information';		

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

	return $tabs;
}

If you wish to rename one or two tabs, you need to remove the ones you don’t want to rename from the above code.

Leave a Reply

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