Created
January 8, 2019 10:23
-
-
Save ville6000/f5a4670ef7e89a4fb6f1e93cf13a7bf2 to your computer and use it in GitHub Desktop.
WooCommerce remove product 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
<?php | |
/** | |
* Remove product data tabs | |
* | |
* @param array $tabs Array of product tabs. | |
* | |
* @return array | |
*/ | |
function theme_remove_product_tabs( $tabs ) { | |
unset( $tabs['description'] ); | |
unset( $tabs['reviews'] ); | |
unset( $tabs['additional_information'] ); | |
return $tabs; | |
} | |
add_filter( 'woocommerce_product_tabs', 'theme_remove_product_tabs', 98 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment