Sẽ có lúc bạn sử dụng Woo cho một mục đích nào đó mà không phải là show sản phẩm hàng hóa như thông thường. Khi đó có thể một số tab tại mục "Dữ liệu sản phẩm" (Product data) sẽ dư thừa và bạn cần ẩn nó đi cho đỡ chướng 2 con mắt
Như trong ảnh bên dưới, tôi cần ẩn các mục ở mũi tên màu đỏ.

Cách làm đơn giản mà không cần dùng plugin, bạn chỉ cần thêm đoạn code sau vào file functions.php của thư mục chứa theme hiện hành
function remove_tab($tabs){
unset($tabs['shipping']); // it is to remove general tab
unset($tabs['general']); // it is to remove general tab
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
return($tabs);
}
add_filter('woocommerce_product_data_tabs', 'remove_tab', 10, 1);
//riêng với tab cuối cùng (Get more options) thì cần add dòng này nhé!
add_filter( 'woocommerce_allow_marketplace_suggestions', '__return_false' );