How to Remove Related Products In WooCommerce

Related products on Single Product page is a good way to give the customer more options to choose from or may be helpful to increase order size.( Or Not?).

The problem with ‘related products’ on a single product page is that it can distract the user and make them confuse can result in no sale at all.

I know it’s Sad


I am not saying ‘related products’ are bad for everyone but definitely not Ideal for every store.

For example,

If you are just selling sunglasses worth over $50 and If someone on a single product page that simply means that person is very much interested in buying that product.

Why would you want to show very similar other 4 Sunglasses and delay the process of clicking “Add to Cart” Button and final sale?

Also, the majority of Customers will not buy 2 pairs of sunglasses at the same time.

On the other hand, If you are selling Groceries than Yes, most likely customers will buy other items too. so it pretty much depends on what you are selling

Remove Related Products In WooCommerce

Simply add the following code in your theme’s functions.php file it will remove the related products from the single product page.

Make sure always use child theme otherwise you will loose changes after theme update.

function wc_remove_related_products( $args ) {
 return array();
add_filter( 'woocommerce_related_products_args','wc_remove_related_products', 10 );

For Beginners:

functions.php file is located in your in the wp-content > themes > your active theme’s folder


Which you can locate via FTP or in WordPress Admin dashboard go to Appearance > Editor and found a file with name functions.php from the menu on the right side.

If having an issue you are more than welcome to leave a comment below and we will do our best to help you out.

Show More

Related Articles