> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities/template-parts.md).

# Template Parts

Template Parts abilities of the Hostinger AI plugin's WordPress site MCP server. Read and edit block-theme template parts such as headers and footers.

Read and edit block-theme template parts such as headers and footers.

**Available:** Always.

| Ability                                                                   | What it does                                                             | Type                             |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------ | -------------------------------- |
| [Delete Template Part](#delete-template-part)                             | Delete a template part.                                                  | **Destructive** · Safe to retry  |
| [Get Template Part](#get-template-part)                                   | Get one template part by ID with its content.                            | Read-only                        |
| [Assign Navigation To Template Part](#assign-navigation-to-template-part) | Assign a navigation to the first Navigation block of a template part.    | Changes the site · Safe to retry |
| [List Template Parts](#list-template-parts)                               | List the template parts of a block theme, such as its header and footer. | Read-only                        |
| [Update Template Part](#update-template-part)                             | Update the content or title of a template part.                          | Changes the site · Safe to retry |

## Delete Template Part

`hostinger-ai/template-parts-delete` · **Destructive** · Safe to retry

Delete a template part.

| Required parameter | Type   | Description                                                                                                                      |
| ------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| `id`               | string | Template part ID in the theme//slug format (e.g. twentytwentyfive//header), as returned by `hostinger-ai/template-parts-search`. |

<details>

<summary>Description sent to AI tools</summary>

> Delete a template part. For a part provided by the theme, this removes the customizations and restores the theme version. Use when asked to remove or reset a header, footer or other part. Needs `id` from `hostinger-ai/template-parts-search`.

</details>

## Get Template Part

`hostinger-ai/template-parts-get` · Read-only

Get one template part by ID with its content.

| Required parameter | Type   | Description                                                                                                                      |
| ------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| `id`               | string | Template part ID in the theme//slug format (e.g. twentytwentyfive//header), as returned by `hostinger-ai/template-parts-search`. |

<details>

<summary>Description sent to AI tools</summary>

> Get one template part by ID with its content. Use when you need the current content of a header, footer or other part. Needs `id` from `hostinger-ai/template-parts-search`.

</details>

## Assign Navigation To Template Part

`hostinger-ai/template-parts-navigation-assign` · Changes the site · Safe to retry

Assign a navigation to the first Navigation block of a template part.

| Required parameter | Type    | Description                                                                                                                      |
| ------------------ | ------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `template_part_id` | string  | Template part ID in the theme//slug format (e.g. twentytwentyfive//header), as returned by `hostinger-ai/template-parts-search`. |
| `navigation_id`    | integer | Navigation (wp\_navigation) post ID.                                                                                             |

<details>

<summary>Description sent to AI tools</summary>

> Assign a navigation to the first Navigation block of a template part. Use when a block theme header or footer should show a given menu. Needs `template_part_id` from `hostinger-ai/template-parts-search` and `navigation_id` from `hostinger-ai/navigations-search`.

</details>

## List Template Parts

`hostinger-ai/template-parts-search` · Read-only

List the template parts of a block theme, such as its header and footer.

No required parameters.

<details>

<summary>Optional parameters (3)</summary>

| Parameter   | Type    | Description                                |
| ----------- | ------- | ------------------------------------------ |
| `wp_id`     | integer | Limit to the specified post id.            |
| `area`      | string  | Limit to the specified template part area. |
| `post_type` | string  | Post type to get the templates for.        |

</details>

<details>

<summary>Description sent to AI tools</summary>

> List the template parts of a block theme, such as its header and footer. Use when you need a template part ID before reading or editing it.

</details>

## Update Template Part

`hostinger-ai/template-parts-update` · Changes the site · Safe to retry

Update the content or title of a template part.

| Required parameter | Type   | Description                                                                                                                      |
| ------------------ | ------ | -------------------------------------------------------------------------------------------------------------------------------- |
| `id`               | string | Template part ID in the theme//slug format (e.g. twentytwentyfive//header), as returned by `hostinger-ai/template-parts-search`. |

<details>

<summary>Optional parameters (9)</summary>

| Parameter     | Type                                                                                                                                                                                                             | Description                                                        |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `slug`        | string                                                                                                                                                                                                           | Unique slug identifying the template.                              |
| `theme`       | string                                                                                                                                                                                                           | Theme identifier for the template.                                 |
| `type`        | string                                                                                                                                                                                                           | Type of template.                                                  |
| `content`     | string or object                                                                                                                                                                                                 | Content of template.                                               |
| `title`       | string or object                                                                                                                                                                                                 | Title of template.                                                 |
| `description` | string                                                                                                                                                                                                           | Description of template.                                           |
| `status`      | one of `publish`, `future`, `draft`, `pending`, `private`, `in-progress`, `failed`, `wc-pending`, `wc-processing`, `wc-on-hold`, `wc-completed`, `wc-cancelled`, `wc-refunded`, `wc-failed`, `wc-checkout-draft` | Status of template.                                                |
| `author`      | integer                                                                                                                                                                                                          | The ID for the author of the template.                             |
| `area`        | string                                                                                                                                                                                                           | Where the template part is intended for use (header, footer, etc.) |

</details>

<details>

<summary>Description sent to AI tools</summary>

> Update the content or title of a template part. Use when asked to change a block theme header, footer or other part. Needs `id` from `hostinger-ai/template-parts-search`.

</details>

## Related

* [Abilities Reference](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities.md)
* [WordPress Site MCP Server](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/mcp-server.md)
