[wp-trac] [WordPress Trac] #51924: Add a filter hook to manipulate $user_data variable on retrieve_password() function

WordPress Trac noreply at wordpress.org
Mon Dec 21 21:05:05 UTC 2020


#51924: Add a filter hook to manipulate $user_data variable on retrieve_password()
function
-----------------------------------------+------------------------------
 Reporter:  marcelo2605                  |       Owner:  johnbillion
     Type:  feature request              |      Status:  reviewing
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Login and Registration       |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  administration
-----------------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 Thanks for the ticket and the PR @marcelo2605.

 * Could you describe a use case for this filter please? It looks useful,
 but knowing a real use case will help decide if this is the preferred
 approach.
 * What's the filter you're referring to when you say "WordPress Core allow
 to add custom validation methods to login form" ? I ask because it appears
 that no other filters in core directly pass in `$_POST` as a parameter,
 and hopefully this filter can use a similar pattern to the other that
 you're referring to.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51924#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list