[wp-trac] [WordPress Trac] #58310: Move the login forms into functions and add them in place with a hook to allow them to be replaced

WordPress Trac noreply at wordpress.org
Sun May 14 17:39:21 UTC 2023


#58310: Move the login forms into functions and add them in place with a hook to
allow them to be replaced
------------------------------------+-----------------------------
 Reporter:  oglekler                |      Owner:  (none)
     Type:  enhancement             |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 There are different ways to replace forms, one is the redirect to
 different page(s), another is to add it to the `login_form_{$action}`
 action add to add other things like `login_footer()` after and then exit.
 It will be much more flexible and convenient to filter the forms output
 instead of replicating things.

 It would be even better to add two hooks — the first to change the form
 function, and the second to filter HTML, if nesessary. But perhaps this is
 too much.

 For reference, the wp-login.php file has 6 forms:
 - language switcher
 - admin email confirmation
 - lost password
 - password reset
 - register
 - login

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


More information about the wp-trac mailing list