Make WordPress Core

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: fatihwk's profile fatihwk Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Users Keywords:
Focuses: Cc:

Description (last modified by TobiasBg)

[Original description removed as it was just the attached patches in plain text]

Attachments (2)

user.diff (790 bytes) - added by fatihwk 9 years ago.
pluggable.diff (704 bytes) - added by fatihwk 9 years ago.

Download all attachments as: .zip

Change History (7)

@fatihwk
9 years ago

@fatihwk
9 years ago

#1 @TobiasBg
9 years ago

  • Description modified (diff)
  • Keywords reporter-feedback added

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?

#2 @SergeyBiryukov
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 @fatihwk
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.

#4 @fatihwk
9 years ago

filter is ok. but can it change the progress of saving user to db? I just want user to control how to "SAVE" data to db,no matter it's update or insert.

#5 @chriscct7
8 years ago

  • Keywords reporter-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No new requests for this in 2 years, and I can't see a compelling case for core needing to add this.

Note: See TracTickets for help on using tickets.