For our customization want to remove woocommerce related products programmatically then place the following snippet in functions.php within your theme folder!.
The remove_action can be used for removing the related products from woocommerce page.

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products',20);
remove_action( 'woocommerce_after_single_product', 'woocommerce_output_related_products',10); 

Have any doubt, then comment here!

Leave a Reply

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