Some Store owners like to keep their product pages as clutter free as possible. They want to remove the all the unnecessary stuff and keep the focus of the page about the particular product.
On WooCommerce below the single product page, you will find 3 related products. In this tutorial, we will show you how to remove these related products using a simple code.
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
This single line of code should be enough to disable the related products from showing up.
Where Should You Insert this Code
You can use one of two methods to insert this code:
Method 1: Code Snippets plugin
You can use a plugin like Code Snippets to add this to your WooCommerce website.
Method 2: Child Theme
The safe choice would be creating a child theme and insert this code in child themes functions.php