Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Last active May 8, 2024 09:28
Show Gist options
  • Save shameemreza/eaf07bf829febd0d567c80c9688dd14f to your computer and use it in GitHub Desktop.
Save shameemreza/eaf07bf829febd0d567c80c9688dd14f to your computer and use it in GitHub Desktop.
Remove the Additional Information tab from the WooCommerce single product pages
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