[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

WooCommerce. How to get rid of “Related products” section

Hello, this time we will learn how to get rid of “Related products” section in your WooCommerce template.

In order to apply changes, we need to follow the steps, indicated below.

  1. Login to site admin panel, and visit Appearance -> Editor section. Find there the custom-function.php or functions.php file.

  2. Place the following code to the end of the file:

    <?php
    function wc_remove_related_products( $args ) {
    return array();
    }
    
    add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);

    WooCommerce. How to get rid of Related products section

  3. Save the changes in the file.

Reload the page in order to see changes applied.

Feel free to check the detailed video tutorial below:

WooCommerce. How to get rid of “Related products” section