Warning: This method has been deprecated. Use wp_xmlrpc_server::login() instead.

wp_xmlrpc_server::login_pass_ok() WordPress Method

The wp_xmlrpc_server::login_pass_ok() Wordpress method is used to check if a user's login credentials are valid. This is useful for sites that allow users to log in using their username and password.

wp_xmlrpc_server::login_pass_ok( string $username, string $password ) #

Check user’s credentials. Deprecated.


Description

Top ↑

See also


Top ↑

Parameters

$username

(string)(Required)User's username.

$password

(string)(Required)User's password.


Top ↑

Return

(bool) Whether authentication passed.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Use wp_xmlrpc_server::login()
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More