Created
January 27, 2025 13:33
-
-
Save spasicm/d25559b7e7bf8919ee568df09bee31af to your computer and use it in GitHub Desktop.
WooCommerce remove "About Brand" tab from the 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
<?php | |
// WooCommerce remove a Brand tab from the single product page | |
add_filter('woocommerce_product_tabs', 'eworkshop_remove_about_brand_tab', 99); | |
function eworkshop_remove_about_brand_tab($tabs) { | |
// Replace 'about_brand' with the actual key of the tab you want to remove | |
if (isset($tabs['brand_tab'])) { | |
unset($tabs['brand_tab']); | |
} | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment