-
-
Save dexit/0e1ca5d86f9d3ce30cf7e219775fff6f to your computer and use it in GitHub Desktop.
[Frontend Snippets][Editing product data tabs] Reordering product data tabs
This file contains hidden or 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
| /** | |
| * Reorder product data 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