Created
October 7, 2016 14:31
-
-
Save MinaPansuriya/9dd8d70f0220460020d03b2f5777311c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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