Inside wp-login.php we have several action process: ‘logout’, ‘register’, ‘retrievepassword’, etc… and of course ‘login’.
I am using the login_footer hook to add some special features right after the “login form”
add_filter('login_footer', array($this, 'special_form'));
How can I decide when just login process is running? So I can avoid show the special form in other actions (‘register’, ‘retrievepassword’, etc…).
Use the “login_form_login” hook.
There’s also a bunch of other
login_form_*hooks for other wp-login.php actions – login_form_logout, login_form_register, and so on.For reference, in WordPress 3.4.1 the login_form_* action is executed on line 380 of wp-login.php, and the available actions are listed on line 357.