Get a block template
get_templateRetrieve a WordPress theme's block template or template part markup to inspect or edit the layout of any page type. Specify the template ID and optional site to get the full block markup.
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. |