Home › Forums › WoodMart support forum › Reorder product tabs › Reply To: Reorder product tabs
December 17, 2020 at 11:23 am
#251745
owldigitals
Participant
Found the problem, when I move DESCRIPTION TAB priority after brand_tab, it works,
// Reorder Tabs on WooCommerce Product Page -----------------------------------
function bashi_reorder_tabs_product_page( $tabs ) {
$tabs['description']['priority'] = 30;
$tabs['brand_tab']['priority'] = 10;
$tabs['reviews']['priority'] = 15;
$tabs['woodmart_additional_tab']['priority'] = 20;
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'bashi_reorder_tabs_product_page', 98 );
but in theory, I want to keep description tab 1-st when it will have content to show and when not, not to show and 2nd BRAND tab to be opened automatically