Opened 10 years ago
Closed 9 years ago
#32116 closed enhancement (fixed)
Pass errors object to lostpassword_post hook
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.1 |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | Cc: |
Description
It would be super handy if plugins/themes could add their own errors when using the lostpassword_post
hook.
Attachments (3)
Change History (9)
#2
@
9 years ago
- Keywords has-patch added; needs-patch needs-docs removed
Refreshed the patch and added docs.
#3
@
9 years ago
Hi @iamfriendly, instead of mentioning it at the end of the parameter description, there should be a proper changelog entry in the DocBlock, e.g. {
* @since 4.4.0 Added the `$errors` parameter.
This ticket was mentioned in Slack in #docs by richardtape. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
Thanks for the patch, TheDeadMedic.
There's no longer any need to use
do_action_ref_array()
in order to pass an object to an action. Adding$errors
as the second parameter todo_action()
should be fine.See #16661 for some discussion.
Also needs some filter documentation.