Make WordPress Core

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#12705 closed feature request (invalid)

Suggest add new filter to wp_insert_user()

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

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
14 years ago

  • Component changed from General to Users
  • Milestone changed from 2.9.3 to Future Release
  • Priority changed from high to normal

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@…
14 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
11 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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
11 years ago

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