title: Remove add cart button in Woocommerce for a specific product category
body: <p>I have an issue how to remove a cart from a category product. It works just fine if I apply it to a specific id or all in general, but I am unable to do it for a category. Below is my code I have done regarding it. </p>
  
  <p>Also, I am struggling to apply this same pattern to Related Articles section, so any help would be appreciated. </p>
  
  <p>Thank you.</p>
  
  <pre><code>//function for deleting ....
  
  function remove_product_description_add_cart_button(){
  
      global $product;
  
      //Remove Add to Cart button from product description of product with id 1234    
  
      if ($product-&gt;id == 188){
  
      remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
  
      }
  
  add_action('wp','remove_product_description_add_cart_button');
  
  }
  </code></pre>