How to override wp-login.php
Don’t modify core, use the actions and hooks system instead add_action( ‘login_init’, ‘yourloginoverrides’ ); function yourloginoverrides() { // do some check and call wp_redirect if its true or whatever you wanted to do }