Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#41950 new enhancement

wp_insert_user() should accept a meta_input argument

Reported by: desrosj Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 2.0
Component: Users Keywords: needs-patch
Focuses: Cc:


wp_insert_user() does insert user meta, but only meta generated by the function (nickname, first_name, etc.), or added to that list by using the insert_user_meta filter.

It would be nice to be able to pass the additional meta to the function when called, like in wp_insert_post().

Change History (1)

#1 @technosailor
3 years ago

This sounds like a good candidate for a filter. We shouldn’t support non-core meta in core but should allow plugins to hook in and define their own.

Note: See TracTickets for help on using tickets.