Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce - Produkt-Tabs Reihenfolge ändern
/**
* /**
* 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