Hello folks..!!
As you already read our post to add new tabs or we can say add custom tabs in woocommerce. If you haven't read yet
don't worry ...... just Go to the Below link...
CLICK ME
NOW in this article you would know how to rearrange tabs order.
which means which tab should come first and second etc.
Go to
functions.php
which is at :::: wp-content/themes/yourtheme/functions.php
Add the below code
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;
}
By the above code you will get the REVIEWS TAB FIRST
DESCRIPTION SECOND and ADDITIONAL INFO third.
SImple is in it..
IF YOU WANT DESCRIPTION tab first just change the positions.
LIKE :::
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['description']['priority'] = 10; // Description first
$tabs['reviews']['priority'] = 5; // Reviews second
$tabs['additional_information']['priority'] = 15; // Additional information third
return $tabs;
}
Wow, you are done..!!!