Fires when submitting registration form data, before the user is created.
$sanitized_user_loginstring
$user_emailstring
$errorsWP_Error
This action hook can be used to handle post data from a user registration before the registration_errors filter is called or errors are returned.
Please note that this hook should never be used for custom validation. Any custom validation rules should be performed using the registration_errors filter.
do_action( 'register_post', $sanitized_user_login, $user_email, $errors );
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/register_post