Opened 8 years ago
Last modified 6 years ago
#39067 new enhancement
wp_insert_user custom validation
Reported by: | shamim51 | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.