Purpose

Returns a fully rendered template. This is the workhorse behind every template navigation: load_template (JS) prepares the payload and get_template delivers the rendered HTML, which show_template swaps into the page.

The action allows unauthenticated calls (allow_nopriv) so public templates work for logged-out visitors; permission checks happen per template.

Payload

  • payload.template — identifier of the template to render. Fallback resolution order when empty: template (top level) → $_GET['template']options.template.
  • payload.* — additional parameters for the template (e.g. id of the entry to display). The page’s GET parameters are restored server-side from $_POST['GET'], so placeholders and queries can read them as usual.
  • options — rendering options from the calling element.

Response

CALLBACK_TYPE_TEMPLATE — the rendered template HTML.