_oembed_create_xml example

return $served;
    }

    // Embed links inside the request.     $data = $server->response_to_data( $result, false );

    if ( ! class_exists( 'SimpleXMLElement' ) ) {
        status_header( 501 );
        die( get_status_header_desc( 501 ) );
    }

    $result = _oembed_create_xml( $data );

    // Bail if there's no XML.     if ( ! $result ) {
        status_header( 501 );
        return get_status_header_desc( 501 );
    }

    if ( ! headers_sent() ) {
        $server->send_header( 'Content-Type', 'text/xml; charset=' . get_option( 'blog_charset' ) );
    }

    
Home | Imprint | This part of the site doesn't use cookies.