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

Menus & Navigation

Menus & Navigation abilities of the Hostinger AI plugin's WordPress site MCP server. Manage menus, their items and the theme locations they appear in.

Manage menus, their items and the theme locations they appear in.

Available: Always.

Ability
What it does
Type

Create a new menu item.

Changes the site

Delete a menu item by ID.

Destructive · Safe to retry

Get a single menu item by ID.

Read-only

Get a list of menu items with filtering options.

Read-only

Update an existing menu item, including label, URL, parent, and order.

Changes the site · Safe to retry

Assign a menu to a given theme location (e.g., primary).

Changes the site · Safe to retry

Get a list of theme menu locations and their assigned menus.

Read-only

Create a new navigation menu.

Changes the site

Delete a navigation menu by ID.

Destructive · Safe to retry

Get a single navigation menu by ID.

Read-only

Get a list of navigation menus.

Read-only

Update an existing navigation menu by ID.

Changes the site · Safe to retry

Create Menu Item

hostinger-ai/menu-items-create · Changes the site

Create a new menu item.

No required parameters.

Optional parameters (15)
Parameter
Type
Default
Description

title

object

The title for the object.

type

one of taxonomy, post_type, post_type_archive, custom

custom

The family of objects originally represented, such as "post_type" or "taxonomy".

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

publish

A named status for the object.

parent

integer

0

The ID for the parent of the object.

attr_title

string

Text for the title attribute of the link element for this menu item.

classes

array of string

Class names for the link element of this menu item.

description

string

The description of this menu item.

menu_order

integer

1

The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.

object

string

The type of object originally represented, such as "category", "post", or "attachment".

object_id

integer

0

The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.

target

one of _blank, ``

The target attribute of the link element for this menu item.

url

string

The URL to which this menu item points.

xfn

array of string

The XFN relationship expressed in the link of this menu item.

menus

integer

The terms assigned to the object in the nav_menu taxonomy.

meta

object

Meta fields.

Description sent to AI tools

Create a new menu item. Provide title, url or object_id/object, and menu (menu_id).

Delete Menu Item

hostinger-ai/menu-items-delete · Destructive · Safe to retry

Delete a menu item by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Get Menu Item

hostinger-ai/menu-items-get · Read-only

Get a single menu item by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

List Menu Items

hostinger-ai/menu-items-search · Read-only

Get a list of menu items with filtering options.

No required parameters.

Optional parameters (17)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

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

page

integer

1

Current page of the collection.

per_page

integer

100

Maximum number of items to be returned in result set.

search

string

Limit results to those matching a string.

exclude

array of integer

[]

Ensure result set excludes specific IDs.

include

array of integer

[]

Limit result set to specific IDs.

search_semantics

one of exact

How to interpret the search input.

offset

integer

Offset the result set by a specific number of items.

order

one of asc, desc

asc

Order sort attribute ascending or descending.

orderby

one of author, date, id, include, modified, parent, relevance, slug, include_slugs, title, menu_order

menu_order

Sort collection by object attribute.

search_columns

array of post_title, post_content, post_excerpt

[]

Array of column names to be searched.

slug

array of string

Limit result set to posts with one or more specific slugs.

status

array of publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, in-progress, failed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, any

publish

Limit result set to posts assigned one or more statuses.

tax_relation

one of AND, OR

Limit result set based on relationship between multiple taxonomies.

menus

array of string or number or boolean or integer or null

Limit result set to items with specific terms assigned in the menus taxonomy.

menus_exclude

array of string or number or boolean or integer or null

Limit result set to items except those with specific terms assigned in the menus taxonomy.

menu_order

integer

Limit result set to posts with a specific menu_order value.

Update Menu Item

hostinger-ai/menu-items-update · Changes the site · Safe to retry

Update an existing menu item, including label, URL, parent, and order.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (15)
Parameter
Type
Description

title

object

The title for the object.

type

one of taxonomy, post_type, post_type_archive, custom

The family of objects originally represented, such as "post_type" or "taxonomy".

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

A named status for the object.

parent

integer

The ID for the parent of the object.

attr_title

string

Text for the title attribute of the link element for this menu item.

classes

array of string

Class names for the link element of this menu item.

description

string

The description of this menu item.

menu_order

integer

The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.

object

string

The type of object originally represented, such as "category", "post", or "attachment".

object_id

integer

The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.

target

one of _blank, ``

The target attribute of the link element for this menu item.

url

string

The URL to which this menu item points.

xfn

array of string

The XFN relationship expressed in the link of this menu item.

menus

integer

The terms assigned to the object in the nav_menu taxonomy.

meta

object

Meta fields.

Assign Menu To Location

hostinger-ai/menu-locations-assign · Changes the site · Safe to retry

Assign a menu to a given theme location (e.g., primary).

Required parameter
Type
Description

id

integer

Unique identifier for the resource

location

string

Theme location slug (e.g., primary, header, footer).

menu

integer

Menu ID to assign to the location.

Description sent to AI tools

Assign a menu to a given theme location (e.g., primary). Provide location and menu ID.

List Menu Locations

hostinger-ai/menu-locations-list · Read-only

Get a list of theme menu locations and their assigned menus.

No required parameters.

Optional parameters (1)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

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

Create Menu

hostinger-ai/menus-create · Changes the site

Create a new navigation menu.

Required parameter
Type
Description

name

string

HTML title for the term.

Optional parameters (5)
Parameter
Type
Description

description

string

HTML description of the term.

slug

string

An alphanumeric identifier for the term unique to its type.

meta

object

Meta fields.

locations

array of string

The locations assigned to the menu.

auto_add

boolean

Whether to automatically add top level pages to this menu.

Delete Menu

hostinger-ai/menus-delete · Destructive · Safe to retry

Delete a navigation menu by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (1)
Parameter
Type
Description

force

boolean

Force menu item deletion

Get Menu

hostinger-ai/menus-get · Read-only

Get a single navigation menu by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

List Menus

hostinger-ai/menus-search · Read-only

Get a list of navigation menus.

No required parameters.

Optional parameters (12)
Parameter
Type
Default
Description

context

one of view, embed, edit

view

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

page

integer

1

Current page of the collection.

per_page

integer

10

Maximum number of items to be returned in result set.

search

string

Limit results to those matching a string.

exclude

array of integer

[]

Ensure result set excludes specific IDs.

include

array of integer

[]

Limit result set to specific IDs.

offset

integer

Offset the result set by a specific number of items.

order

one of asc, desc

asc

Order sort attribute ascending or descending.

orderby

one of id, include, name, slug, include_slugs, term_group, description, count

name

Sort collection by term attribute.

hide_empty

boolean

false

Whether to hide terms not assigned to any posts.

post

integer

Limit result set to terms assigned to a specific post.

slug

array of string

Limit result set to terms with one or more specific slugs.

Update Menu

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

Update an existing navigation menu by ID.

Required parameter
Type
Description

id

integer

Unique identifier for the resource

Optional parameters (6)
Parameter
Type
Description

description

string

HTML description of the term.

name

string

HTML title for the term.

slug

string

An alphanumeric identifier for the term unique to its type.

meta

object

Meta fields.

locations

array of string

The locations assigned to the menu.

auto_add

boolean

Whether to automatically add top level pages to this menu.

Last updated

Was this helpful?