Menu Close

WooCommerce – How to Remove Product Links on the Cart Page

default

Today we are going to show you how you can remove the product links from the Cart page in WooCommerce.

The great news is that you only need to add a single line of PHP code to your functions.php file. There are plugins that do this but it is totally unnecessary when it’s so simple to disable.

The code below will remove the links as illustrated in the image below:

So here it is, one line of code:


add_filter( 'woocommerce_cart_item_permalink', '__return_null' );

Easy right?

View Source
Posted in WordPress