wp_login_errors WordPress Filter Hook

The wp_login_errors hook is used to display errors during the login process. This hook is executed before the login form is displayed, so it can be used to display custom error messages.

apply_filters( 'wp_login_errors', WP_Error $errors, string $redirect_to ) #

Filters the login page errors.


Parameters

$errors

(WP_Error)WP Error object.

$redirect_to

(string)Redirect destination URL.


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.