Disable related Products Per product With a checkbox - Woocommerce Snippets

Woocommerce Oct 01, 2019
Here's how it displays 

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.

Yellamaddi Naveen

Naveen is 22 years old , self-taught Wordpress developer , Currently Working as a Wordpress developer at Upwork.