authenticate
过滤钩子
apply_filters( 'authenticate', null, $username, $password )
- 参数
-
-
(null|WP_User|WP_Error)
$user
WP_User if the user is authenticated.
WP_Error or null otherwise.- Required: 是
-
(string)
$username
Username or email address.- Required: 是
-
(string)
$password
User password.- Required: 是
-
(null|WP_User|WP_Error)
- 定义位置
-
-
wp-includes/pluggable.php
, line 614
-
wp-includes/pluggable.php
- 引入
- 4.5.0
- 弃用
- –
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 );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。