Home Forums WoodMart support forum wd_custom_tab priority Reply To: wd_custom_tab priority

#572860

Luke Nielsen
Keymaster

Hello,

Try to use the code below in this case:

/**
 * Reorder product data tabs
 */
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

	if ( !empty($tabs['wd_custom_tab']) ) {
               $tabs['wd_custom_tab']['priority'] = 2; 
        }

	return $tabs;
}

Kind Regards