wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



authenticate › WordPress Filter Hooks

Seit4.5.0
Veraltetn/v
apply_filters( 'authenticate', null, $username, $password )
Parameter: (3)
  • (null|WP_User|WP_Error) $user WP_User if the user is authenticated. WP_Error or null otherwise.
    Erforderlich: Ja
  • (string) $username Username or email address.
    Erforderlich: Ja
  • (string) $password User password.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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