This page redirects to an external site: https://developer.wordpress.org/reference/functions/user_pass_ok/
As of WordPress 3.5 this function has been deprecated in favor of wp_authenticate()
Check that the user login name and password is correct.
<code style="color: #000000"><span style="color: #0000BB"><?php user_pass_ok</span><span style="color: #007700">( </span><span style="color: #0000BB">$user_login</span><span style="color: #007700">, </span><span style="color: #0000BB">$user_pass </span><span style="color: #007700">) </span><span style="color: #0000BB">?></span></code>
<?php
$user_login = 'admin';
$user_pass = 'mypass';
if ( !user_pass_ok( $user_login, $user_pass ) ) {
echo "Sorry, you are not allowed to do this.";
exit;
}
?>
user_pass_ok() is located in wp-includes/user.php.