Last active
February 3, 2017 08:23
-
-
Save rynaldos-zz/e0a78f9380160e0ad41411fe7960717b to your computer and use it in GitHub Desktop.
[WooCommerce] Unsetting product data tabs in backend
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
// uncomment the tabs you don't want hidden | |
function remove_tab($tabs){ | |
unset($tabs['shipping']); // it is to remove shipping tab | |
unset($tabs['inventory']); // it is to remove inventory tab | |
unset($tabs['advanced']); // it is to remove advanced tab | |
unset($tabs['linked_product']); // it is to remove linked_product tab | |
unset($tabs['attribute']); // it is to remove attribute tab | |
unset($tabs['variations']); // it is to remove variations tab | |
return($tabs); | |
} | |
add_filter('woocommerce_product_data_tabs', 'remove_tab', 10, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment