Uma área de pesquisa sobre o WordPress para devs e autores do tema



authenticate ›

Desde4.5.0
Obsoleton/a
apply_filters( 'authenticate', null, $username, $password )
Parâmetros: (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
Definido em:
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.





Fonte

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