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.idof 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.
Related hooks
- wr_get_template_locale — decides the template language for the request.
- wr_template_modify_TemplateRequest_selector — adjust the selector before rendering.
