Removing Related Products from WooCommerce Single Product Page

Related products on a single product page in Woocommerce can be a great way to inform customers of other similar products in yout store. Sometimes however, you may need to remove them and here’s how.

Adding this snippet to your functions.php file:

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

Useful post? Share it

6 comments on “Removing Related Products from WooCommerce Single Product Page

  1. If I want to hide related products for guest users, can I incorporate “is_user_logged_in()” in y\the sample code?

Leave a Reply

Your email address will not be published.