Make WordPress Core

Opened 10 years ago

Last modified 8 years ago

#39067 new enhancement

wp_insert_user custom validation

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

Description

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 10 years ago.

Download all attachments as: .zip

Change History (2)

@shamim51
10 years ago

#1 @shamim51
10 years ago

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