title: Custom add to cart button URL for specific product in WooCommerce?
body: <p>I would like the user to be directed to a certain URL when they click the 'add to cart' button. At the moment I have this:</p>
  
  <pre><code>/**
   * Set a custom add to cart URL to redirect to
   * @return string
   */
    function custom_add_to_cart_redirect() { 
  return 'http://www.yourdomain.com/your-page/'; 
  }
  add_filter( 'woocommerce_add_to_cart_redirect', 
  'custom_add_to_cart_redirect' );
  </code></pre>
  
  <p>However, this redirects all add to cart buttons, how can I make the URL specific to the product? Thanks</p>