wp_assign_menu_location
Assign a WordPress menu to a location via the writable locations field, overcoming the read-only menu-locations endpoint.
Instructions
Assign a location through the menu's writable locations field. The menu-locations endpoint itself is read-only.
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": {
"ref": "<ref>",
"location": "<location>"
},
"name": "wp_assign_menu_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| dry_run | No | Preview changes without writing | |
| location | Yes |