> 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/menus-and-navigation.md).

# 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 Menu Item](#create-menu-item)               | Create a classic menu item from a title and either a url or an object\_id/object (such as a page). | Changes the site                 |
| [Delete Menu Item](#delete-menu-item)               | Permanently delete a classic menu item; this cannot be undone.                                     | **Destructive** · Safe to retry  |
| [Get Menu Item](#get-menu-item)                     | Get one classic menu item by ID.                                                                   | Read-only                        |
| [List Menu Items](#list-menu-items)                 | List classic menu items, filterable by menu.                                                       | Read-only                        |
| [Update Menu Item](#update-menu-item)               | Update a classic menu item, including its label, URL, parent and order.                            | Changes the site · Safe to retry |
| [Assign Menu To Location](#assign-menu-to-location) | Assign a classic menu to a theme location, such as primary.                                        | Changes the site · Safe to retry |
| [List Menu Locations](#list-menu-locations)         | List the theme menu locations and the menus assigned to them.                                      | Read-only                        |
| [Create Menu](#create-menu)                         | Create a classic navigation menu from a name.                                                      | Changes the site                 |
| [Delete Menu](#delete-menu)                         | Permanently delete a classic navigation menu and all its items; this cannot be undone.             | **Destructive** · Safe to retry  |
| [Get Menu](#get-menu)                               | Get one classic navigation menu by ID.                                                             | Read-only                        |
| [List Menus](#list-menus)                           | List the classic navigation menus.                                                                 | Read-only                        |
| [Update Menu](#update-menu)                         | Update a classic navigation menu, such as its name.                                                | Changes the site · Safe to retry |
| [Create Navigation](#create-navigation)             | Create a Site Editor navigation (block theme menu).                                                | Changes the site                 |
| [Delete Navigation](#delete-navigation)             | Move a Site Editor navigation to the trash; it can be restored from the trash.                     | **Destructive** · Safe to retry  |
| [Get Navigation](#get-navigation)                   | Get one Site Editor navigation by ID with its block content.                                       | Read-only                        |
| [List Navigations](#list-navigations)               | List the Site Editor navigations (block theme menus).                                              | Read-only                        |
| [Update Navigation](#update-navigation)             | Update a Site Editor navigation, such as its title or links.                                       | Changes the site · Safe to retry |

## Create Menu Item

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

Create a classic menu item from a title and either a url or an object\_id/object (such as a page).

| Required parameter | Type    | Description                                                 |
| ------------------ | ------- | ----------------------------------------------------------- |
| `menus`            | integer | The terms assigned to the object in the nav\_menu taxonomy. |

<details>

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

| Parameter     | Type                                                                                                                                                                                                             | Default   | Description                                                                                                                    |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `title`       | string or 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.                                                                  |

</details>

<details>

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

> Create a classic menu item from a title and either a url or an object\_id/object (such as a page). Use when asked to add a link to a menu. Needs `menus` from `hostinger-ai/menus-search`, and `object_id` from `hostinger-ai/pages-search` or `hostinger-ai/posts-search` when linking to content.

</details>

## Delete Menu Item

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

Permanently delete a classic menu item; this cannot be undone.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Permanently delete a classic menu item; this cannot be undone. Use when asked to remove a link from a menu. Needs `id` from `hostinger-ai/menu-items-search`.

</details>

## Get Menu Item

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

Get one classic menu item by ID.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Get one classic menu item by ID. Use when you need the details of a known menu link. Needs `id` from `hostinger-ai/menu-items-search`.

</details>

## List Menu Items

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

List classic menu items, filterable by menu.

No required parameters.

<details>

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

| Parameter    | Type                                                                                                                                                                                                                                                                                                                                       | Default      | Description                                                                   |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------ | ----------------------------------------------------------------------------- |
| `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.                                             |
| `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.                                          |
| `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.                      |
| `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. |
| `menu_order` | integer                                                                                                                                                                                                                                                                                                                                    |              | Limit result set to posts with a specific menu\_order value.                  |

</details>

<details>

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

> List classic menu items, filterable by menu. Use when you need a menu item ID, or to see what a menu contains. Filter with a `menus` ID from `hostinger-ai/menus-search`.

</details>

## Update Menu Item

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

Update a classic menu item, including its label, URL, parent and order.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

| Parameter     | Type                                                                                                                                                                                                             | Description                                                                                                                    |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `title`       | string or 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.                                                                    |

</details>

<details>

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

> Update a classic menu item, including its label, URL, parent and order. Use when asked to rename, move or reorder a menu link. Needs `id` from `hostinger-ai/menu-items-search`.

</details>

## Assign Menu To Location

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

Assign a classic menu to a theme location, such as primary.

| Required parameter | Type    | Description                                                                                             |
| ------------------ | ------- | ------------------------------------------------------------------------------------------------------- |
| `location`         | string  | Theme location slug, as returned by `hostinger-ai/menu-locations-list` (e.g., primary, header, footer). |
| `menu`             | integer | Menu ID to assign to the location.                                                                      |

<details>

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

> Assign a classic menu to a theme location, such as primary. Other locations that already use this menu keep it. Use when asked to show a menu in the header, footer or another location. Needs `location` from `hostinger-ai/menu-locations-list` and `menu` from `hostinger-ai/menus-search`.

</details>

## List Menu Locations

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

List the theme menu locations and the menus assigned to them.

No parameters.

<details>

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

> List the theme menu locations and the menus assigned to them. Use when you need a `location` slug, or to see which menu shows where.

</details>

## Create Menu

`hostinger-ai/menus-create` · Changes the site

Create a classic navigation menu from a name.

| Required parameter | Type   | Description              |
| ------------------ | ------ | ------------------------ |
| `name`             | string | HTML title for the term. |

<details>

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

| Parameter     | Type            | Description                                                 |
| ------------- | --------------- | ----------------------------------------------------------- |
| `description` | string          | HTML description of the term.                               |
| `slug`        | string          | An alphanumeric identifier for the term unique to its type. |
| `locations`   | array of string | The locations assigned to the menu.                         |
| `auto_add`    | boolean         | Whether to automatically add top level pages to this menu.  |

</details>

<details>

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

> Create a classic navigation menu from a name. Use when asked for a new menu; then add links with `hostinger-ai/menu-items-create` and place it with `hostinger-ai/menu-locations-assign`.

</details>

## Delete Menu

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

Permanently delete a classic navigation menu and all its items; this cannot be undone.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

| Parameter | Type    | Description              |
| --------- | ------- | ------------------------ |
| `force`   | boolean | Force menu item deletion |

</details>

<details>

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

> Permanently delete a classic navigation menu and all its items; this cannot be undone. Use when asked to remove a menu. Needs `id` from `hostinger-ai/menus-search`.

</details>

## Get Menu

`hostinger-ai/menus-get` · Read-only

Get one classic navigation menu by ID.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Get one classic navigation menu by ID. Use when you need the details of a known menu. Needs `id` from `hostinger-ai/menus-search`.

</details>

## List Menus

`hostinger-ai/menus-search` · Read-only

List the classic navigation menus.

No required parameters.

<details>

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

| Parameter    | Type                                                                                          | Default | Description                                                |
| ------------ | --------------------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------- |
| `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.                          |
| `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. |

</details>

<details>

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

> List the classic navigation menus. Use when you need a menu ID, for example to add items or assign a menu to a theme location. Block themes use `hostinger-ai/navigations-search` instead.

</details>

## Update Menu

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

Update a classic navigation menu, such as its name.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

| 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. |
| `locations`   | array of string | The locations assigned to the menu.                         |
| `auto_add`    | boolean         | Whether to automatically add top level pages to this menu.  |

</details>

<details>

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

> Update a classic navigation menu, such as its name. Use when asked to rename a menu. Needs `id` from `hostinger-ai/menus-search`.

</details>

## Create Navigation

`hostinger-ai/navigations-create` · Changes the site

Create a Site Editor navigation (block theme menu).

No required parameters.

<details>

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

| Parameter  | Type                                                                                                                                                                                                             | Description                                                 |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `slug`     | string                                                                                                                                                                                                           | An alphanumeric identifier for the post unique to its type. |
| `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 post.                                |
| `password` | string                                                                                                                                                                                                           | A password to protect access to the content and excerpt.    |
| `title`    | string or object                                                                                                                                                                                                 | The title for the post.                                     |
| `content`  | string or object                                                                                                                                                                                                 | The content for the post.                                   |
| `template` | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Create a Site Editor navigation (block theme menu). Use when a block theme needs a new menu; place it with `hostinger-ai/template-parts-navigation-assign`.

</details>

## Delete Navigation

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

Move a Site Editor navigation to the trash; it can be restored from the trash.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Move a Site Editor navigation to the trash; it can be restored from the trash. Use when asked to remove a block theme menu. Needs `id` from `hostinger-ai/navigations-search`.

</details>

## Get Navigation

`hostinger-ai/navigations-get` · Read-only

Get one Site Editor navigation by ID with its block content.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

> Get one Site Editor navigation by ID with its block content. Use when you need the links of a known navigation. Needs `id` from `hostinger-ai/navigations-search`.

</details>

## List Navigations

`hostinger-ai/navigations-search` · Read-only

List the Site Editor navigations (block theme menus).

No required parameters.

<details>

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

| Parameter  | Type                                                                                                                                                                                                                                                                                                                                       | Default   | Description                                                |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | ---------------------------------------------------------- |
| `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.                          |
| `order`    | one of `asc`, `desc`                                                                                                                                                                                                                                                                                                                       | `desc`    | Order sort attribute ascending or descending.              |
| `orderby`  | one of `author`, `date`, `id`, `include`, `modified`, `parent`, `relevance`, `slug`, `include_slugs`, `title`                                                                                                                                                                                                                              | `date`    | Sort collection by post attribute.                         |
| `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.   |

</details>

<details>

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

> List the Site Editor navigations (block theme menus). Use when you need a navigation ID on a block theme, for example to edit its links or place it in a header. Classic themes use `hostinger-ai/menus-search` instead.

</details>

## Update Navigation

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

Update a Site Editor navigation, such as its title or links.

| Required parameter | Type    | Description                        |
| ------------------ | ------- | ---------------------------------- |
| `id`               | integer | Unique identifier for the resource |

<details>

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

| Parameter  | Type                                                                                                                                                                                                             | Description                                                 |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| `slug`     | string                                                                                                                                                                                                           | An alphanumeric identifier for the post unique to its type. |
| `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 post.                                |
| `password` | string                                                                                                                                                                                                           | A password to protect access to the content and excerpt.    |
| `title`    | string or object                                                                                                                                                                                                 | The title for the post.                                     |
| `content`  | string or object                                                                                                                                                                                                 | The content for the post.                                   |
| `template` | string                                                                                                                                                                                                           | The theme file to use to display the post.                  |

</details>

<details>

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

> Update a Site Editor navigation, such as its title or links. Use when asked to change the links of a block theme menu. Needs `id` from `hostinger-ai/navigations-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)
