Skip to content

Instantly share code, notes, and snippets.

@nickburne
Created April 28, 2014 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickburne/11371781 to your computer and use it in GitHub Desktop.
Save nickburne/11371781 to your computer and use it in GitHub Desktop.
Re-order the 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment