在 wp-login.php 中,我们有几个action 进程:'logout'、'register'、'retrievepassword'等......当然还有'login'。
我正在使用login_footer钩子在“登录表单”之后添加一些特殊功能
add_filter('login_footer', array($this, 'special_form'));
我如何决定何时login运行进程?所以我可以避免special form在其他操作中显示(“注册”、“检索密码”等)。