IXR_Server::multiCall() WordPress Method
The IXR_Server::multiCall() method is a powerful tool for performing multiple XML-RPC calls in a single request. This can be very useful when you need to perform a large number of calls, or when you need to perform a call that is not possible with a single request.
IXR_Server::multiCall( $methodcalls ) #
Source
File: wp-includes/IXR/class-IXR-server.php
function multiCall($methodcalls) { // See http://www.xmlrpc.com/discuss/msgReader$1208 $return = array(); foreach ($methodcalls as $call) { $method = $call['methodName']; $params = $call['params']; if ($method == 'system.multicall') { $result = new IXR_Error(-32600, 'Recursive calls to system.multicall are forbidden'); } else { $result = $this->call($method, $params); } if (is_a($result, 'IXR_Error')) { $return[] = array( 'faultCode' => $result->code, 'faultString' => $result->message ); } else { $return[] = array($result); } } return $return; }
Expand full source codeCollapse full source codeView on TracView on GitHub