[wp-trac] [WordPress Trac] #53110: Pass `$userdata` to the actions and filters in `wp_insert_user()`

WordPress Trac noreply at wordpress.org
Tue May 25 17:38:44 UTC 2021


#53110: Pass `$userdata` to the actions and filters in `wp_insert_user()`
-------------------------+----------------------
 Reporter:  johnbillion  |       Owner:  desrosj
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  5.8
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+----------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51005" 51005]:
 {{{
 #!CommitTicketReference repository="" revision="51005"
 Users: Pass on the user data received by `wp_insert_user()` to related
 hooks.

 This adds a new parameter to the action and filter hooks found in
 `wp_insert_user()` to pass the raw user data received through `$userdata`
 to hooked functions.

 This will allow hooked functions to perform more contextual adjustments to
 new users, and makes supplying custom user meta fields possible.

 Props johnbillion, audrasjb.
 Fixes #53110.
 }}}

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


More information about the wp-trac mailing list