mcp_assign_menu_location
Assign a WordPress menu to a specific theme location by site, menu ID, and location slug; set menu_id to 0 to unassign.
Instructions
Assign a menu to a theme location
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>",
"location": "<location>"
},
"name": "mcp_assign_menu_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| menu_id | Yes | Menu ID (0 to unassign) | |
| location | Yes | Theme location slug |