Warning: This function has been deprecated. Use wp_authenticate() instead.
user_pass_ok( string $user_login, string $user_pass )
Check that the user login name and password is correct.
Description Description
See also See also
Parameters Parameters
- $user_login
-
(string) (Required) User name.
- $user_pass
-
(string) (Required) User password.
Return Return
(bool) False if does not authenticate, true if username and password authenticates.
Source Source
File: wp-includes/deprecated.php
function user_pass_ok($user_login, $user_pass) { _deprecated_function( __FUNCTION__, '3.5.0', 'wp_authenticate()' ); $user = wp_authenticate( $user_login, $user_pass ); if ( is_wp_error( $user ) ) return false; return true; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Use wp_authenticate() |
0.71 | Introduced. |