Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created March 11, 2013 11:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jameskoster/5133532 to your computer and use it in GitHub Desktop.
Save jameskoster/5133532 to your computer and use it in GitHub Desktop.
WooCommerce - Reorder product 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
return $tabs;
}
@OatmealBath
Copy link

Thanks! Where do you find which parameter to pass to the custom function ($tags in this case)? Is it just a matter of finding the filter in the template files?

@elepepe
Copy link

elepepe commented Feb 26, 2015

My question is about my tabs that are not working, when I go with the cursor over the tab, it hilights, but when i click on the tab it doesn't work.
Any suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment