title: Disabling wordpress wp-login.php
body: <p>I created my own login page. And used this following code for warning message if username and password empty.</p>
  
  <pre><code>function verify_username_password( $user, $username, $password ) {
  $login_page  = home_url( '/login/' );
  if( $username == "" || $password == "" ) {
      wp_redirect( $login_page . "?login=empty" );
      exit;
    }
  }
  add_filter( 'authenticate', 'verify_username_password', 1, 3);
  </code></pre>
  
  <p>And disabled wp-login.php with this following code:</p>
  
  <pre><code>if (is_super_admin()) {
  header('Location: wp-admin.php'); 
  }
  else {
  header('Location: index.php');
  }
  </code></pre>
  
  <p>but when i go to wp-login.php it redirects me to login page.
  I want to redirect to homepage if user is not admin.</p>