How to reorder Tab in WooCommerce product page

How To Rearrange Tab In WooCommerce Product Page

For some digital product websites, we need to put 1 time the digital products in the cart or checkout. In this case, we can use the code below for implementing this funcitionality.

				
					add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {

    $tabs['reviews']['priority'] = 5;           // Reviews first
    $tabs['description']['priority'] = 10;          // Description second
    $tabs['additional_information']['priority'] = 15;   // Additional information third

    return $tabs;
}
				
			

for better understanding, we can follow the links below:

Facebook
Twitter
LinkedIn
Pinterest

Leave a Reply