wp_create_menu_item
Add a new item to a WordPress navigation menu with specified title, URL, and menu assignment. Supports dry-run to preview changes before publishing.
Instructions
Create classic menu item. Supports dry-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| xfn | No | ||
| type | No | custom | |
| menus | Yes | ||
| title | Yes | ||
| object | No | ||
| parent | No | ||
| status | No | publish | |
| target | No | ||
| classes | No | ||
| dry_run | No | Preview changes without writing | |
| object_id | No | ||
| attr_title | No | ||
| menu_order | No | ||
| description | No |