Get a block template
get_templateRetrieve a block template or template part with its full block markup to inspect or edit the layout of any page type.
Instructions
Get one block template or template part, including its block markup, so you can inspect or edit the layout of an entire page type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Template id, usually "theme//slug", e.g. "twentytwentyfour//single". | |
| kind | No | Whether the id names a template or a template part. | template |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |