title: Prevent automatic login when register in woocommerce and redirect to login page?
body: <p>I am designing a website with woo commerce wordpress I have separate the login and register page by reference to <a href="https://stackoverflow.com/questions/23821488/separate-registration-page-in-woo-commerce-website/243046300">this solution</a></p>
  
  <p>How can I redirect the registration page to login page after successful registration without logged in. The user need to login there with the emailed username and password.</p>
  
  <p>my login page is</p>
  
  <p>www.example.com/my-account/</p>
  
  <p>and registration page is </p>
  
  <p>www.example.com/my-account/?action=register</p>