Created
November 18, 2015 16:38
-
-
Save eltondev/6c6f62ab436501a1d847 to your computer and use it in GitHub Desktop.
Remove tabs from product details page
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
add_filter( 'woocommerce_product_tabs', 'wc_remove_product_tabs', 98 ); | |
function wc_remove_product_tabs( $tabs ) { | |
//Not to remove a particular tab , just add the // in front . | |
unset( $tabs['description'] ); // Description Tab | |
unset( $tabs['reviews'] ); // Reviews tab | |
unset( $tabs['additional_information'] ); // Additional Information | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment