Skip to content

Instantly share code, notes, and snippets.

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 MinaPansuriya/9dd8d70f0220460020d03b2f5777311c to your computer and use it in GitHub Desktop.
Save MinaPansuriya/9dd8d70f0220460020d03b2f5777311c to your computer and use it in GitHub Desktop.
/**
* @Title: WooCommerce - Reorder Tabs on Single Product page
* @Author: Mina Pansuriya
* @Website: http://minapansuriya.com
*/
add_filter( 'woocommerce_product_tabs', 'pbs_woo_reorder_tabs', 98 );
function pbs_woo_reorder_tabs( $single_product_tabs ) {
$single_product_tabs['reviews']['priority'] = 5; // 1st Position - Reviews Tab
$single_product_tabs['additional_information']['priority'] = 10; // 2nd Position - Additional Information Tab
$single_product_tabs['description']['priority'] = 15; // 3rd Position - Description Tab
return $single_product_tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment