Make WordPress Core

Opened 11 years ago

Last modified 6 years ago

#28528 new enhancement

Action in wp-login.php

Reported by: sgr33n's profile 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)

wp-login-enhancements.diff (4.2 KB) - added by SGr33n 9 years ago.

Download all attachments as: .zip

Change History (11)

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Login and Registration

Related: #17948, #22139.

like filtering username and password inputs.

What would be a use case for this?

#2 @SGr33n
11 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 :)

#3 @SGr33n
11 years ago

Yes look like they are the same cases. I will subscribe there.

#4 follow-up: @strangerstudios
11 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.

Last edited 11 years ago by strangerstudios (previous) (diff)

#5 @strangerstudios
11 years ago

Here's the old one: #18709

Here is where it was removed per the last comment there: [25631]

Not sure what the official follow up on this is, but once consensus is made on which filters and where, I will write the patch. (Really want this one.)

Last edited 11 years ago by SergeyBiryukov (previous) (diff)

#6 in reply to: ↑ 4 ; follow-up: @SergeyBiryukov
11 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 @strangerstudios
11 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.

#8 @wonderboymusic
9 years ago

  • Keywords needs-patch added

#9 @SGr33n
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 @SGr33n
8 years ago

  • Keywords has-patch added; needs-patch removed

Hi,
Some chances to be addressed?

Last edited 8 years ago by SGr33n (previous) (diff)
Note: See TracTickets for help on using tickets.