Categories
WooCommerce

Hide Remove Button [x] from Specific product from WooCommerce Cart

I recently worked on a project where I needed to use a WooCommce Product for collecting the School Registration Fee. we all know that with WooCommerce, it can be done very easily 😉 but on the cart page, every product appears with a [x] button that allows users to remove any specific product from the cart.

Registration Fee as product without [x] button

WooCommerce has a default filter to remove this [x] button called woocommerce_cart_item_remove_link

Copy This code snippet below and paste it to your theme’s functions.php file.