• Resolved bsmalldesign

    (@bsmalldesign)


    Is it possible to get your custom tabs to show before the ‘additional information’ tab that shows the shipping info automatically?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @bsmalldesign,

    You can change the ‘priority’ of tabs via a filter. Here is what that filter function would look like:

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    
    function woo_reorder_tabs( $tabs ) {
    
    	$tabs['description']['priority'] = 5;			// Description first
    	$tabs['recipes']['priority'] = 10;			// Recipes Second
    	$tabs['additional_information']['priority'] = 15;	// Additional information third
    
    	return $tabs;
    }

    For more information, here is WooCommerce’s official documentation on this: https://docs.woocommerce.com/document/editing-product-data-tabs/#section-3.

    Let me know how that goes for you.

    Cheers,
    Kevin.

    • This reply was modified 7 years, 3 months ago by yikesitskevin.
    Thread Starter bsmalldesign

    (@bsmalldesign)

    Thanks Kevin! This worked perfectly

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Left of ‘Additional Info’ tab?’ is closed to new replies.