Last active
May 8, 2024 09:28
-
-
Save shameemreza/eaf07bf829febd0d567c80c9688dd14f to your computer and use it in GitHub Desktop.
Remove the Additional Information tab from the WooCommerce single product pages
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_additional_information_tab', 98 ); | |
function remove_additional_information_tab( $tabs ) { | |
// Check if the 'additional_information' tab is set and remove it | |
if (isset($tabs['additional_information'])) { | |
unset($tabs['additional_information']); | |
} | |
return $tabs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment