wpseek.com
WordPress开发者和主题制作者的搜索引擎



authenticate › WordPress过滤钩子

Since4.5.0
已弃用n/a
apply_filters( 'authenticate', null, $username, $password )
参数: (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
定义在:
文档:

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.





源码

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