1. Home
  2. ReHub Theme
  3. Shop (woocommerce) options
  4. How to disable Related Products

How to disable Related Products

To deactivate Related Products on all Product pages place the code below in functions.php or in rh-grandchild-func.php of RH Grandchild Custom plugin if you use one of ready Rehub child themes:

function wc_remove_related_products( $terms ) {
    return array();
add_filter( 'woocommerce_get_related_product_cat_terms', 'wc_remove_related_products', 90 );
add_filter( 'woocommerce_get_related_product_tag_terms', 'wc_remove_related_products', 90 );



Was this article helpful to you? Yes 1 No

How can we help?