royal-mcp__wp_create_menu_item
Create a menu item in a navigation menu. On a site with no menus, call wp_create_menu first to obtain a menu_id. Requires edit_theme_options capability. Undo deletes the item while it is unchanged. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | External URL (leave empty if linking to a post/page via object_id) | |
| title | Yes | ||
| target | No | Link target | |
| menu_id | Yes | ||
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| position | No | Position in menu order (default: end) | |
| object_id | No | ID of the post or term the item links to | |
| parent_id | No | Parent menu item ID for nested items (0 = top level) | |
| object_type | No | custom (default, needs url), any post type (post, page, product…) or any taxonomy (category, post_tag, product_cat…) |