title: Change the woocommerce product review login link
body: <p>I have a woocommerce site with product reviews enabled (product reviews use the wordpress comment system). When a visitor is not logged in, this is currently shown:</p>
  
  <pre><code>You must be logged in to post a comment.
  </code></pre>
  
  <p>The <code>logged in</code> is linked to a default <code>mysite.com/wp-login.php?redirect_to=myproduct-url</code>. When visitors follow the link, they are taken to the default wordpress login page.</p>
  
  <p>However, woocommerce has its own account login/register page, and I would like to redirect visitors to that woocommerce page instead. I'd also like to keep the automatic <code>?redirect_to=</code> query so that users can be redirected back to that originating product page after they are logged in.</p>
  
  <p>I'm aware that I should add a function to my theme's function.php that modifies that default link behaviour, but which filter/action do I use?</p>
  
  <p>[edit]
  I found this</p>
  
  <pre><code>add_filter( 'login_url', 'my_login_page', 10, 2 );
  function my_login_page( $login_url, $redirect ) {
      return home_url( '/my-login-page/?redirect_to=' . $redirect );
  }
  </code></pre>
  
  <p><a href="http://codex.wordpress.org/Plugin_API/Filter_Reference/login_url" rel="nofollow">http://codex.wordpress.org/Plugin_API/Filter_Reference/login_url</a></p>
  
  <p>so now I can modify the login link to use my-login-page which is great, but since it's now using the woocommerce login, I've found that woocommerce login redirects to the My Account page, and doesn't respect the <code>?redirect_to=myproduct-url</code></p>
  
  <p>Any ideas on how to get the woocommerce login to follow the <code>?redirect_to=myproduct-url</code>?</p>