[wp-trac] [WordPress Trac] #57843: Add action to wp_update_user
WordPress Trac
noreply at wordpress.org
Thu Mar 2 02:15:39 UTC 2023
#57843: Add action to wp_update_user
-------------------------+-----------------------------
Reporter: tanner m | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Add an action to the end of the `wp_update_user` function that includes
the data set to be updated. I am working on SSO and several places use
this function to set the user's password. I've included the processed data
and added a new `$userdata_raw` variable to pass the unprocessed data as
well.
I've also added added a comment to `wp_insert_user` to clarify what type
of password should be passed there. Based on the current doc block, it is
unclear that the password passed to `wp_insert_user` should be hashed if
calling the function directly to update an existing user.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57843>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list