For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

Assign a navigation to a template part by providing template_part_id and navigation_id.

Changes the site · Safe to retry

Delete a template part by ID.

Destructive · Safe to retry

Get a single template part by ID.

Read-only

Update a template part content or title.

Changes the site · Safe to retry

Get a list of template parts.

Read-only

Assign Navigation To Template Part

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

Assign a navigation to a template part by providing template_part_id and navigation_id.

Required parameter
Type
Description

template_part_id

integer

Template part ID.

navigation_id

integer

Navigation (wp_navigation) post ID.

Optional parameters (9)
Parameter
Type
Description

slug

string

Unique slug identifying the template.

theme

string

Theme identifier for the template.

type

string

Type of template.

content

object

Content of template.

title

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.)

Delete Template Part

hostinger-ai/template-part-delete · Destructive · Safe to retry

Delete a template part by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Get Template Part

hostinger-ai/template-part-get · Read-only

Get a single template part by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Update Template Part

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

Update a template part content or title.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (9)
Parameter
Type
Description

slug

string

Unique slug identifying the template.

theme

string

Theme identifier for the template.

type

string

Type of template.

content

object

Content of template.

title

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.)

List Template Parts

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

Get a list of template parts.

No required parameters.

Optional parameters (4)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

Scope under which the request is made; determines fields present in response.

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.

Last updated

Was this helpful?