Hide “remove item” from cart for WooCommerce product category
问题 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. 回答1: The following code will hide "remove item" from cart for a specific product category (that you will define in the 2nd function) : // Custom conditional function that checks for categories (including parent) function has_product