registration_errors

registration_errors

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('registration_errors') is found 1 times:

  • /wp-includes/user.php line 3467
    3463
    3464
    3465
    3466
    3467
    3468
    3469
    3470
    3471
    3472
    3473
    *                                       during registration.
     * @param string   $sanitized_user_login User's username after it has been sanitized.
     * @param string   $user_email           User's email.
     */
    $errors = apply_filters( 'registration_errors', $errors, $sanitized_user_login, $user_email );
     
    if ( $errors->has_errors() ) {
        return $errors;
    }
     
    $user_pass = wp_generate_password( 12, false );

See this hook used in plugins: