Make WordPress Core

Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#12705 closed feature request (invalid)

Suggest add new filter to wp_insert_user()

Reported by: nkucyd@… Owned by:
Priority: normal Milestone:
Component: Users Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Now, there is no way to change new registration workflow. When every attribute is valid, user registration is approved. I want to add filter to interrupt this workflow to wp_insert_user(). Such as:
in registration.php line 105
$userdata = apply_filter(filter_name, $userdata)
if( !$userdata ) return

I want to use this filter to interrupt normal registration flow.

Change History (4)

#1 @nacin
16 years ago

  • Component GeneralUsers
  • Milestone 2.9.3Future Release
  • Priority highnormal

There are a ton of filters in wp_insert_user() currently as it is. None get the job done?

Milestone: Point releases are for critical bugs and regressions. We're past feature freeze for 3.0. Punting to future release pending patch and consideration.

#2 @nkucyd@…
16 years ago

Yes, there is no filter available to interrupt registration flow. I just want a filter like this, could we consider to add it in 3.0?

#3 @iseulde
13 years ago

  • Resolutioninvalid
  • Status newclosed

You could use the register_post or registration_errors hooks, depending on what you want to do.
If you want to add/change/delete data after the user is successfully registered, you could use user_register, but this will run whenever a new user is added to the database, not just when a user registers through the registration form.

#4 @SergeyBiryukov
13 years ago

  • Milestone Future Release
Note: See TracTickets for help on using tickets.