xmlrpc_login_error filter-hookWP 3.5.0

Filters the XML-RPC user login error message.

Usage

add_filter( 'xmlrpc_login_error', 'wp_kama_xmlrpc_login_error_filter', 10, 2 );

/**
 * Function for `xmlrpc_login_error` filter-hook.
 * 
 * @param IXR_Error $error The XML-RPC error message.
 * @param WP_Error  $user  WP_Error object.
 *
 * @return IXR_Error
 */
function wp_kama_xmlrpc_login_error_filter( $error, $user ){

	// filter...
	return $error;
}
$error(IXR_Error)
The XML-RPC error message.
$user(WP_Error)
WP_Error object.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

wp_xmlrpc_server::login()
xmlrpc_login_error
wp-includes/class-wp-xmlrpc-server.php 314
$this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );

Where the hook is used in WordPress

Usage not found.