xmlrpc_login_error
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; }
Changelog
Since 3.5.0 | Introduced. |
Where the hook is called
xmlrpc_login_error
wp-includes/class-wp-xmlrpc-server.php 314
$this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );