Make WordPress Core

Opened 12 years ago

Closed 8 years ago

Last modified 8 years ago

#13227 closed enhancement (invalid)

Add filters above forms in wp-login.php

Reported by: dimadin Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Administration Keywords:
Focuses: Cc:


Sometimes I need more descriptive text to have above forms on wp-login.php (login, register, lost password).

This patch add filters above those forms.

Example usage:

function above_login_form_filter() {
	return '<p class="message">Tip: If you forgot your password, go to <a href="wp-login.php?action=lostpassword">Lost Password</a> page</p>';

Attachments (2)

wplogin_filters.patch (1.4 KB) - added by dimadin 12 years ago.
wplogin_filters.1.patch (1.4 KB) - added by Latz 8 years ago.

Download all attachments as: .zip

Change History (7)

#1 @nacin
12 years ago

  • Milestone changed from 3.0 to Future Release

#2 @DrewAPicture
9 years ago

  • Component changed from UI to Administration
  • Keywords needs-refresh added
  • Milestone changed from Future Release to Awaiting Review

I can see this though I'm not a fan of adding several filters that all basically have the same purpose. Also, I'd rename it/the hooks to before_$action_form.

#3 @Latz
8 years ago

  • Keywords needs-refresh removed

Updated patch so it can be applied to v3.6 code, including DrewAPicture's proposal.

#4 @iseulde
8 years ago

  • Keywords has-patch removed
  • Resolution set to invalid
  • Status changed from new to closed

You could add messages with the login_message hook. Simply check for the action with $_REQUEST['action'].
Feel free to reopen if I'm misunderstanding something.

#5 @ocean90
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.