A WordPress-centric search engine for devs and theme authors



wp_authenticate_user ›

Since2.5.0
Deprecatedn/a
apply_filters( 'wp_authenticate_user', $user, $password )
Parameters: (2)
  • (WP_User|WP_Error) $user WP_User or WP_Error object if a previous callback failed authentication.
    Required: Yes
  • (string) $password Password to check against the user.
    Required: Yes
Defined at:
Codex:

Filters whether the given user can be authenticated with the provided $password.





Source

$user = apply_filters( 'wp_authenticate_user', $user, $password );