title: Woocommerce/Wordpress - Redirect User Login to Homepage
body: <p>I have searched for the answer to this, used plugins and still nothing works.
  I would like users of my site to be redirected to the home page after they login/register.</p>
  
  <p>Currently, the user logs in and is redirected to the my account page. </p>
  
  <p>Woocommerce provides this code, but it failed to work for me:</p>
  
  <pre><code>/*
   * goes in theme functions.php or a custom plugin
   *
   * By default login goes to my account
   **/
  add_filter('woocommerce_login_widget_redirect', 'custom_login_redirect');
  
  function custom_login_redirect( $redirect_to ) {
       $redirect_to = 'http://anypage.com';
  }
  </code></pre>
  
  <p>I have also attempted to use the Peter's Redirect plugin but it does not work since woocommerce bypasses wp-login.php.</p>
  
  <p>Thoughts?</p>