Make WordPress Core

Opened 8 years ago

Last modified 5 years ago

#39067 new enhancement

wp_insert_user custom validation

Reported by: shamim51's profile shamim51 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: Cc:


Currently there are no hooks in wp_insert_user where plugin can hook to validate any custom validation and prevent to insert/update user.

If there can be added a hook before insert/update user to database, that will be very helpful for custom validation.

sample code can be following

$custom_user_validate = apply_filters( 'custom_user_validate', false );

if ( is_wp_error( $custom_user_validate ) ) {
        return $custom_user_validate;

Attachments (1)

39067.patch (766 bytes) - added by shamim51 8 years ago.

Download all attachments as: .zip

Change History (2)

8 years ago

#1 @shamim51
8 years ago

  • Keywords has-patch added
  • Version 4.7 deleted
Note: See TracTickets for help on using tickets.