IXR_Server::output()publicWP 1.0

Метод класса: IXR_Server{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$IXR_Server = new IXR_Server();
$IXR_Server->output( $xml );
$xml (обязательный)
-

Код IXR_Server::output() WP 6.5.2

function output($xml)
{
    $charset = function_exists('get_option') ? get_option('blog_charset') : '';
    if ($charset)
        $xml = '<?xml version="1.0" encoding="'.$charset.'"?>'."\n".$xml;
    else
        $xml = '<?xml version="1.0"?>'."\n".$xml;
    $length = strlen($xml);
    header('Connection: close');
    if ($charset)
        header('Content-Type: text/xml; charset='.$charset);
    else
        header('Content-Type: text/xml');
    header('Date: '.gmdate('r'));
    echo $xml;
    exit;
}