I would like to Hide "remove item" from cart for a specific product category in WooCommerce, just like in "Hide "remove item" from cart for a specific product in WooCommerce" answer thread, but for a specific product category.
Any help would be appreciated.
The following code will hide "remove item" from cart for a specific product category (that you will define in the 2nd function):
Code goes in function.php file of your active child theme (or active theme). Tested and works.
The below code will work as you want it : just change the category id in if clause: