Opened 9 years ago
Closed 8 years ago
#27047 closed feature request (wontfix)
add a wp_save_user pluggable api for plugin to choose where to save user
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.1 |
Component: | Users | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
[Original description removed as it was just the attached patches in plain text]
Attachments (2)
Change History (7)
#2
@
9 years ago
You can use CUSTOM_USER_TABLE
and CUSTOM_USER_META_TABLE
constants:
http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables
Generally, we tend to add filters instead of new pluggable functions, as they are much more flexible (see #8833).
#3
@
9 years ago
I don't want to change the user db. but change the behavior when update or insert user info to db.For example, I have pre-existed website, so when user register on wp ,I can load it from my exist system to wp ,and even change the insert ID according to old system.
Note: See
TracTickets for help on using
tickets.
Thanks for your feature request.
Could you please elaborate and explain why and where this would helpful?
Couldn't this be achieved by changing the used database table in
$wpdb
already?Also, wouldn't this require changes in the functions that retrieve a user from the database, too?