[wp-trac] [WordPress Trac] #38079: Add additional hooks for each handled action in wp-login.php

WordPress Trac noreply at wordpress.org
Sat Sep 17 19:13:20 UTC 2016


#38079: Add additional hooks for each handled action in wp-login.php
------------------------------------+-----------------------------
 Reporter:  jfarthing84             |      Owner:
     Type:  enhancement             |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  trunk
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 7 years ago, in #9682,  `wp-login.php` was made more pluggable. The thing
 is, if you just want to change the look (as my plugin "Theme My Login"
 does), you also have to replicate the logic.

 Having an action that fires just before the `login_header()` call in each
 case of the action handler switch should be sufficient. One such hook is
 already present for one action: `lost_password`.

 However, the hook `register` is already in use for the register link as is
 the format `{$action}_form`. So, I propose using `pre_{$action}_form`.

 Patch incoming.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38079>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list