Opened 3 years ago
#58310 new enhancement
Move the login forms into functions and add them in place with a hook to allow them to be replaced
| Reported by: | oglekler | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Login and Registration | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)