How to Hide Related Products in WooCommerce ?

WooCommerce Related Products

Here is the little tip about how you can hide related products in WooCommerce. Copy this snippet in your theme’s functions.php file.

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

If this snippet doesn’t work on your theme ( in several themes it won’t work ) then you can simply do this trick

  • Open file located on this path ( /wp-content/plugins/woocommerce/templates/single-product/related.php )
  • Delete or comment everything on this file and you are done