Home Forums WoodMart support forum product Tabs error Reply To: product Tabs error

#537400

TRT
Participant

Thank you very much, it solved my problem, I just had to follow the logic and do the same for the description field

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

	if ( ! empty( $tabs['description'] ) ) {
		 $tabs['description'] ['priority'] = 5;
		 }
	if ( ! empty( $tabs['wd_custom_tab'] ) ) {
		$tabs['wd_custom_tab']['priority'] = 10; //complementos
	}
	$tabs['additional_information']['priority'] = 15;
	$tabs['reviews']['priority'] = 50;
	
	return $tabs;
}