Opened 10 years ago
Last modified 7 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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)