Last active
June 29, 2017 06:10
-
-
Save wooexperte/e956e46ac9e3ed3e6c1648206a10c22a to your computer and use it in GitHub Desktop.
WooCommerce Produkt-Tabs entfernen
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 deaktivieren | |
* https://wooexperte.de/snippet/woocommerce-produkt-tabs-reihenfolge-aendern/ | |
*/ | |
function woo_remove_product_tab($tabs) { | |
unset( $tabs['description'] ); // Entfernt Tab "Beschreibung" | |
unset( $tabs['reviews'] ); // Entfernt Tab "Bewertung" | |
unset( $tabs['additional_information'] ); // Entfernt Tab "Zusätzliche Informationen" | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tab', 98); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment