title: Exclude a product category from Woocommerce related products
body: <p>In woocommerce, I am trying to remove a specific product category from displayed related products on single product pages.</p>
  
  <p>I have tried to use a function hooked in <code>woocommerce_get_related_product_cat_terms</code>, filter hook, like in <a href="https://stackoverflow.com/search?q=woocommerce_get_related_product_cat_terms">some answer threads</a>, but it doesn't seem to work anymore. </p>
  
  <p>How to exclude a specific product category from Woocommerce related products?</p>