IXR_Server::error()publicWP 1.0

Method of the class: IXR_Server{}

No Hooks.

Return

null. Nothing (null).

Usage

$IXR_Server = new IXR_Server();
$IXR_Server->error( $error, $message );
$error (required)
-
$message **
-
Default: false

IXR_Server::error() code WP 6.5.4

function error($error, $message = false)
{
    // Accepts either an error object or an error code and message
    if ($message && !is_object($error)) {
        $error = new IXR_Error($error, $message);
    }

    $this->output($error->getXml());
}