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

do_action('registration_errors') is found 1 times:

  • /wp-includes/user.php line 3467
    	 *                                       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: