miriam-m
2/17/2017 - 12:52 PM

Removes related Products by category

Removes related Products by category

function wc_remove_related_products( $args )
{    if (is_product() && has_term( 'Mühlomat Extra' , 'product_cat') or has_term( 'M100 Extra' , 'product_cat'))
    {        return array();     } 
    return $args;
}
add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);