Opened 3 years ago

Last modified 4 months ago

#13227 new enhancement

Add filters above forms in wp-login.php

Reported by: dimadin Owned by:
Priority: normal Milestone: Awaiting Review
Component: Administration Version: 3.0
Severity: normal Keywords: has-patch needs-refresh
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 (1)

wplogin_filters.patch (1.4 KB) - added by dimadin 3 years ago.

Download all attachments as: .zip

Change History (3)

dimadin3 years ago

  • Milestone changed from 3.0 to Future Release
  • 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.

Note: See TracTickets for help on using tickets.