title: WooCommerce: separate login page and registration page
body: <p>I use the WooCommerce plugin 2.0.13. On my account page there are login and register sections, both on the same page. I want them separate.</p>
  
  <p>I edit <code>form_login.php</code> to create two files: <code>form_login.php</code> for login and <code>form_register.php</code> for registration.</p>
  
  <p>In the new <code>form_login.php</code> I provide a link to <code>form_registration.php</code> as follows:</p>
  
  <pre><code>&lt;a href="' .get_permalink(woocommerce_get_page_id('myaccount')). '?action=register"&gt; register &lt;/a&gt;
  </code></pre>
  
  <p>In my theme's <code>function.php</code> file, I added the following code.</p>
  
  <pre><code>/*//  Separate login form and registration form */
  add_action('woocommerce_before_my_account', 'load_registration_form', 2);
  function load_registration_form() {
      if (isset($_GET['action']) == 'register') {
          woocommerce_get_template('myaccount/form-registration.php');
      }
  }
  </code></pre>
  
  <p>But this doesn’t work. What's going wrong? Is what I am doing completely wrong?</p>