[wp-trac] [WordPress Trac] #41950: wp_insert_user() should accept a meta_input argument
WordPress Trac
noreply at wordpress.org
Tue Sep 7 21:30:21 UTC 2021
#41950: wp_insert_user() should accept a meta_input argument
-------------------------------------------------+-------------------------
Reporter: desrosj | Owner:
| johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Users | Version: 2.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"51738" 51738]:
{{{
#!CommitTicketReference repository="" revision="51738"
Users: Introduce a `meta_input` argument for `wp_insert_user()`.
This allows custom user meta values to be provided when creating or
updating a user in the same way custom post meta can be provided to
`wp_insert_post()` when creating or updating a post.
Also introduces the `insert_custom_user_meta` to filter these values.
Props desrosj, donmhico
Fixes #41950
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41950#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list