wp_login_errors

wp_login_errors

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_login_errors') is found 2 times:

  • /wp-login.php line 1229
    			);
    		}
    
    		/** This action is documented in wp-login.php */
    		$errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
    
    		login_header( __( 'Check your email' ), '', $errors );
    		login_footer();
    		break;
    
    	case 'confirmaction':
    
  • /wp-login.php line 1468
    		 *
    		 * @param WP_Error $errors      WP Error object.
    		 * @param string   $redirect_to Redirect destination URL.
    		 */
    		$errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
    
    		// Clear any stale cookies.
    		if ( $reauth ) {
    			wp_clear_auth_cookie();
    		}
    
    

See this hook used in plugins: