Hello @stephenboluwatife2005
To remove the “Additional Information” tab from the single product pages, you can use the following PHP hook. This code should be added to your theme’s functions.php
file or in a custom plugin designed to handle custom modifications. Here’s the PHP code snippet:
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;
}
This code uses the woocommerce_product_tabs
filter to modify the tabs on the product pages. It checks if the ‘additional_information’ tab is present and removes it from the array of tabs. The priority is set to 98 to ensure it runs after most other modifications to the tabs, avoiding conflicts.
After adding this snippet to your functions file, the “Additional Information” tab should no longer appear on your product pages. As always, it’s a good practice to check the functionality on a staging environment before implementing it on your live site.