WordPress at a glance
function is not described

wp_xmlrpc_server::login_pass_ok() public WP 1.5.0

Deprecated in from version 2.8.0. It is no longer supported and can be removed in future releases. Use wp_xmlrpc_server::login() instead.

Check user's credentials. Deprecated.

{} It's a method of the class: wp_xmlrpc_server{}

No Hooks.

Return

true/false. Whether authentication passed.

Usage

$wp_xmlrpc_server = new wp_xmlrpc_server();
$wp_xmlrpc_server->login_pass_ok( $username, $password );
$username(string) (required)
User's username.
$password(string) (required)
User's password.

Notes

  • See: wp_xmlrpc_server::login()

Changelog

Since 1.5.0 Introduced.
Deprecated Since 2.8.0 Use wp_xmlrpc_server::login()

Code of wp_xmlrpc_server::login_pass_ok() WP 5.5.3

<?php
public function login_pass_ok( $username, $password ) {
	return (bool) $this->login( $username, $password );
}