wp_menu_item_add
Add custom links to WordPress menus by specifying menu name/ID, title, and URL for navigation management.
Instructions
Add a custom link to a menu
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": {
"menu": "<menu>",
"title": "<title>",
"url": "<url>"
},
"name": "wp_menu_item_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu | Yes | Menu name or ID | |
| title | Yes | Menu item title | |
| url | Yes | Menu item URL |