title: woocommerce after login redirect
body: <p>My In my woocommerce login form successful login it is redirection to shop page I did,</p>
  
  <p>And after login error it should be same page but it goes /wp-login.php.I got some codes but it is working when I enter wrong username or password but when I put empty user name or password it is going /wp-login.php.</p>
  
  <p>Here is the code</p>
  
  <pre><code>function my_front_end_login_fail( $username,$password ){
      $referrer = $_SERVER['HTTP_REFERER'];
      if ( !empty($referrer) &amp;&amp; !strstr($referrer,'wp-login') &amp;&amp; !strstr($referrer,'wp-admin') ){
        wp_redirect( $referrer . '?login_failed=failed' );
        exit;
      }
  }
  </code></pre>
  
  <p>Can you help me.</p>