Last active
July 5, 2019 05:59
-
-
Save imran-khan1/8841fb70e1a9f390a6574cd0227d011e to your computer and use it in GitHub Desktop.
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 woocommerce product data tabs | |
| */ | |
| function remove_woo_product_data_tabs( $tabs ) { | |
| //unset will remove the product tabs | |
| unset( $tabs['description'] ); // Remove the description tab | |
| unset( $tabs['reviews'] ); // Remove the reviews tab | |
| unset( $tabs['additional_information'] ); // Remove the additional information tab | |
| return $tabs; | |
| } | |
| add_filter( 'woocommerce_product_tabs', 'remove_woo_product_data_tabs', 98 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment