Opened 10 years ago
Last modified 5 years ago
#28528 new enhancement
Action in wp-login.php
Reported by: | SGr33n | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
Hi,
I was thinking that wp-login should have some do actions, and more customization possible, like filtering username and password inputs.
Is it in program?
Thanks :)
Attachments (1)
Change History (11)
#2
@
10 years ago
Hi! Would be for adding a Facebook/google/Twitter login.
About the filter, in order to add e.g. A placeholder for the input fileds.
Thanks :)
#4
follow-up:
↓ 6
@
10 years ago
EDIT: I was confused. Disregard.
There is an old old ticket for this that had a few patches and one that was added in a recent version (and then later removed I think). I'm trying to dig it up.
But yeah, it's a good idea to have filters on the new user page similar to the ones on the edit user page. The main hold up before was that there were lots of multisite considerations that made this less than easy. With the new MU push, maybe we can get an acceptable patch for this now.
#5
@
10 years ago
#6
in reply to:
↑ 4
;
follow-up:
↓ 7
@
10 years ago
- Summary changed from Action in login.php to Action in wp-login.php
Replying to strangerstudios:
But yeah, it's a good idea to have filters on the new user page similar to the ones on the edit user page.
This ticket is about new hooks in wp-login.php
, not on the new user page.
#7
in reply to:
↑ 6
@
10 years ago
Replying to SergeyBiryukov:
Replying to strangerstudios:
But yeah, it's a good idea to have filters on the new user page similar to the ones on the edit user page.
This ticket is about new hooks in
wp-login.php
, not on the new user page.
Doh. Sorry for the diversion.
#9
@
9 years ago
In the following patch I've added filters to the input fields in wp-login in order to modify them to add e.g. a placeholder value.
I also added 3 actions:
before_register_form_fields
before_login_form_fields
before_resetpass_form_fields
These are running before the input fileds of related forms. Infact, actually, the current wp-login version doesn't provide a different hook for login page, register page and retrive password page, and checking on which page you are could be a bitt dificoult. In that way we have different actions for each wp-login page.
#10
@
8 years ago
- Keywords has-patch added; needs-patch removed
Some chances to be addressed?
Related: #17948, #22139.
What would be a use case for this?