WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about authenticate

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/pluggable.php apply_filters 614 /**
* Filters whether a set of user login credentials are valid.
*
* A WP_User object is returned if the credentials authenticate a user.
* WP_Error or null otherwise.
*
* @since 2.8.0
* @since 4.5.0 `$username` now accepts an email address.
*
* @param null|WP_User|WP_Error $user WP_User if the user is authenticated.
* WP_Error or null otherwise.
* @param string $username Username or email address.
* @param string $password User password.
*/

Hook Parameters

Parameter Type Name Description
null|WP_User|WP_Error $user WP_User if the user is authenticated.
string $username Username or email address.
string $password User password.