user_pass_ok()
user_pass_ok( string $user_login, string $user_pass )
检查用户登录名和密码是否正确。
Check that the user login name and password is correct.
说明(Description)
另请参阅wp#authenticate()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$user_login | (string) | 用户名。 |
$user_pass | (string) | 用户密码。 |
源码(Source)
user_pass_ok() 函数的代码位于 wp-includes/user.php.
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-includes/deprecated.php | 4 | 18 |
user_pass_ok() 为WP2原创文章,链接:https://www.wp2.cn/functions/user_pass_ok/