WordPress: Wp menu set
wordpress_specialist_wp_menu_setReplace all items in a WordPress navigation menu, including adding, updating, and deleting entries, with permission validation before any mutation.
Instructions
[UNIFIED] Full-replace a nav-menu's items. Pass the complete items array — items not in the array are deleted, new items are created (omit id or set it to 0), existing items (matched by id) are updated. Slug stays frozen so the theme_location mapping survives. Optional name renames the menu. S-22: each item's object_id is validated against the caller's read permissions — post_type items require read_post on the target; non-public taxonomy items require the taxonomy's assign_terms cap; custom URL items skip the object check. Validation runs across every item before any mutation, so a refusal mid-array leaves the menu untouched. Requires Airano MCP Bridge v2.17.0+ and manage_options.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"menu_id": "<menu_id>",
"items": "<items>"
},
"name": "wordpress_specialist_wp_menu_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| site | Yes | ||
| items | Yes | ||
| menu_id | Yes |