Last active
June 29, 2017 13:03
-
-
Save wooexperte/f12a1e666ca3d3f3af11ff28097a6f99 to your computer and use it in GitHub Desktop.
WooCommerce - Produkt-Tabs Reihenfolge ändern
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
/** | |
* /** | |
* WooCommerce - Produkt-Tabs Reihenfolge ändern | |
* https://wooexperte.de/snippet/woocommerce-produkt-tabs-reihenfolge-aendern/ | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 ); | |
function woo_reorder_tabs( $tabs ) { | |
$tabs['reviews']['priority'] = 5; // Tab Zusätzliche Information - Erste Stelle | |
$tabs['description']['priority'] = 10; // Tab Beschreibung - Zweite Stelle | |
$tabs['additional_information']['priority'] = 15; // Tab Bewertungen - Dritte Stelle | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment