[wp-trac] [WordPress Trac] #53110: Pass `$userdata` to the actions and filters in `wp_insert_user()`
WordPress Trac
noreply at wordpress.org
Thu Apr 29 11:03:29 UTC 2021
#53110: Pass `$userdata` to the actions and filters in `wp_insert_user()`
-------------------------+-------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.8
Component: Users | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------+-------------------------
There are several actions and filters inside `wp_insert_user()` which
would benefit from being able to access the raw `$userdata` array that's
passed into the function.
One use case is extending the `wp user import-csv` command in WP-CLI. This
command is a wrapper for `wp_insert_user()` but it's not possible to
provide custom user meta fields because there's nowhere inside
`wp_insert_user()` where a plugin can access the raw data array in order
to add the user meta.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53110>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list