authenticate

Advertisement

Summery Summery

Filters whether a set of user login credentials are valid.

Syntax Syntax

apply_filters( 'authenticate', null|WP_User|WP_Error $user, string $username, string $password )

Description Description

A WP_User object is returned if the credentials authenticate a user. WP_Error or null otherwise.

Parameters Parameters

$user

(null|WP_User|WP_Error) WP_User if the user is authenticated. WP_Error or null otherwise.

$username

(string) Username or email address.

$password

(string) User password

Source Source

File: wp-includes/pluggable.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 $username now accepts an email address.
2.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.