[wp-trac] [WordPress Trac] #38079: Add hooks before output for each action in wp-login.php
WordPress Trac
noreply at wordpress.org
Sun Mar 26 08:03:04 UTC 2017
#38079: Add hooks before output for each action in wp-login.php
-------------------------------------------+-----------------------------
Reporter: jfarthing84 | Owner: voldemortensen
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.8
Component: Login and Registration | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch dev-feedback commit | Focuses:
-------------------------------------------+-----------------------------
Comment (by dingo_bastard):
While I agree that this is cool thing to have,
[[https://developer.wordpress.org/reference/functions/login_header/|login_header]]
function already has a lot of filters and action hooks that you can use to
modify how the login form looks. So you can easily use `login_header`
action for instance to place something before logo in the login form.
There is also `login_messages` filter that you can use to modify the login
messages.
It would be better to place actions inside the `login_header` function,
you you can also filter them based on the error message.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38079#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list