Before Login Action


Staff member
I am working on an plugin for wordpress that will check against an external database to see if the user is a member of that site. If they are, and they don't have a wp login, then the plugin will need to create a login for them. I have everything working (at least in isolation/unit testing), but what I cannot figure out is how to hook into the login process.

Basically what I need to happen is when the login form is submitted, I first need wp to call my function in my plugin. My plugin will then either create a new user (if needed), then I will let wp continue with login.

How can I do that? Is there an action that I am missing?