Document API

This article is a guide instructing you how to get started integrating through the Document API.

Rendering Documents

cs_render_document_html

@since Cornerstone 7.5.0

cs_render_document_html takes in a Post ID or Document ID and renders the elements in that Document into HTML. This can be useful for integrating into plugins that read HTML.

$postID = 123; $html = cs_render_document_html($postID);

See something inaccurate? Let us know