Hooking into ‘authenticate’ causes login to submit on page load
I am trying to understand why it runs even if the form is not submitted on wp-login page load. That’s just how it works. If the current action is login which is the default action, then wp_signon() is always called on page load regardless the login form was submitted or not, and thus your function … Read more