WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 8 months ago

#37818 new enhancement

Suggested import id for wp_insert_user

Reported by: grapplerulrich Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.0
Component: Import Keywords: has-patch needs-refresh needs-unit-tests
Focuses: administration Cc:
PR Number:

Description

I would like to import users and would like to keep the previous user ids.

In wp_insert_post() I can define the import_id and that is the ID that is used if it does not yet exist.

By adding the same parameter to wp_insert_user() would allow us to suggest an ID.

Attachments (1)

37818.patch (2.0 KB) - added by grapplerulrich 3 years ago.

Download all attachments as: .zip

Change History (3)

#1 @grapplerulrich
3 years ago

  • Keywords has-patch added

#2 @desrosj
8 months ago

  • Keywords needs-refresh needs-unit-tests added
  • Milestone changed from Awaiting Review to Future Release

37818.patch needs to be refreshed. This also would need some unit tests.

Note: See TracTickets for help on using tickets.