Created
October 1, 2016 03:42
-
-
Save digitalchild/6b65c6e128c37898aa153b854875982a to your computer and use it in GitHub Desktop.
Remove product tabs
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
<?php | |
// Add this to your themes functions.php | |
// Remove product tabs on the product-edit form. | |
add_filter( 'wcv_product_meta_tabs', 'remove_product_tabs' ); | |
function remove_product_tabs( $tabs ){ | |
unset( $tabs['general'] ); | |
unset( $tabs['attributes' ] ); | |
return $tabs; | |
} // remove_product_tabs() | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment