lostpassword_errors

lostpassword_errors

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('lostpassword_errors') is found 1 times:

  • /wp-includes/user.php line 3177
    	 * @param WP_Error      $errors    A WP_Error object containing any errors generated
    	 *                                 by using invalid credentials.
    	 * @param WP_User|false $user_data WP_User object if found, false if the user does not exist.
    	 */
    	$errors = apply_filters( 'lostpassword_errors', $errors, $user_data );
    
    	if ( $errors->has_errors() ) {
    		return $errors;
    	}
    
    	if ( ! $user_data ) {