We often face issue getting showed random Related products in Woocommerce products page , Sometimes We need to hide them , I am writing this code for this usecase.
How to add this snippet?
You can add this snippet to your child themes functions.php , We don't recommend adding code to your main theme if its not developed by you. Otherwise you can use a simple plugin https://wordpress.org/plugins/code-snippets/
Express your views in the comment section below.