WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 months ago

Last modified 3 months 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:

Description

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>';
}
add_filter('above_login_form','above_login_form_filter');

Attachments (2)

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

Download all attachments as: .zip

Change History (7)

dimadin4 years ago

comment:1 nacin4 years ago

  • Milestone changed from 3.0 to Future Release

comment:2 DrewAPicture15 months 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.

comment:3 Latz8 months ago

  • Keywords needs-refresh removed

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

Latz8 months ago

comment:4 avryl3 months 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.

comment:5 ocean903 months ago

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