unset($tabs['inventory']); // it is to remove inventory tab
//unset($tabs['advanced']); // it is to remove advanced tab
//unset($tabs['linked_product']); // it is to remove linked_product tab
//unset($tabs['attribute']); // it is to remove attribute tab
//unset($tabs['variations']); // it is to remove variations tab
add_filter('woocommerce_product_data_tabs', 'remove_tab', 10, 1);
In the above mentioned code we are just removing a tab named “inventory” from the list of all the tabs. You can remove any other tab as per your choice. I have put a line for each tab, just uncomment any of them which you want to remove from that section.