How To Remove Related Products from WooCommerce

Robin ScottWooCommerce Tutorials0 Comments

The code snippet below will allow you to remove related products from your WooCommerce store, in case you had everything in your store setup just right, and you didn’t want to feature cross sells in your site.

Remove Related Products from WooCommerce

Add the below code to your theme’s functions.php file. This is best done in a child theme so your updates don’t get overwritten if you upgrade your theme.

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

Leave a comment below if this worked / didn’t work for you!

Leave a Reply

Your email address will not be published. Required fields are marked *