Created
November 7, 2020 04:56
-
-
Save nayemDevs/8c888e819ce7303fae986fbd811bc745 to your computer and use it in GitHub Desktop.
Removing tabs from single product 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','remove_wc_tab',12); | |
function remove_wc_tab($tabs){ | |
unset($tabs['reviews']); //removing review tab | |
unset($tabs['additional_information']); //removing additional info tab | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For removing Vendor and Shipping info add -
unset($tabs['shipping']);
unset($tabs['seller']);