Re-order the product tabs in WooCommerce

WooCommerce
// PHP

What it does

Change the order of the product tabs on your WooCommerce website.

Change the priority numbers to match your desired ordering.

The Code

add_filter( 'woocommerce_product_tabs', 'guyPrimavera_reorder_woo_tabs', 99 );
function guyPrimavera_reorder_woo_tabs( $tabs ) {

	$tabs['description']['priority'] = 30;			// Description last
	$tabs['reviews']['priority'] = 10;			// Reviews first
	$tabs['additional_information']['priority'] = 20;	// Additional information second

	return $tabs;

}

How To Use It

Paste this snippet into your theme's functions.php or in a WordPress plugin.

Menu