wpseek.com
A WordPress-centric search engine for devs and theme authors



authenticate › WordPress Filter Hooks

Since4.5.0
Deprecatedn/a
apply_filters( 'authenticate', null, $username, $password )
Parameters: (3)
  • (null|WP_User|WP_Error) $user WP_User if the user is authenticated. WP_Error or null otherwise.
    Required: Yes
  • (string) $username Username or email address.
    Required: Yes
  • (string) $password User password.
    Required: Yes
Defined at:
Codex:

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.





Source

$user = apply_filters( 'authenticate', null, $username, $password );