wp_create_menu_item is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_create_menu_item
DestructiveDescription
Whether it's a new page, a category archive, a tag listing, or a fully custom URL, Easy MCP AI inserts the item into any WordPress navigation menu with label and hierarchy position set from a single AI instruction. No Customizer, no drag-and-drop — the link appears in the right slot on your live site immediately. Chaining this with wp_list_menu_items first is the standard pattern for AI-driven menu editing with Easy MCP AI.
See it in action
wp_create_menu_item {
"item_id": 21,
"menu_id": 3,
"title": "Services",
"url": "/services/",
"position": 3,
"type": "custom"
} New item 'Services' has been added to Primary Navigation at position 3.
Example Use Cases & Sample Prompts
- Adding a new page to navigation
- Prompt: “Add the new ‘Pricing’ page to the primary navigation menu.”
- Adding a custom link
- Prompt: “Add a ‘Blog’ link pointing to ‘/blog’ at the end of the header menu.”
- Building a dropdown
- Prompt: “Add three submenu items under ‘Services’ in the main menu: ‘SEO’, ‘Web Design’, and ‘Content’.”
- Adding a CTA to the menu
- Prompt: “Add a ‘Get Started’ link to the header menu as the last item, pointing to the /contact page.”
- Linking to a category
- Prompt: “Add a ‘Tutorials’ link to the blog navigation that points to the Tutorials category archive.”
Frequently Asked Questions
What does wp_create_menu_item do?
Whether it's a new page, a category archive, a tag listing, or a fully custom URL, Easy MCP AI inserts the item into any WordPress navigation menu with label and hierarchy position set from a single AI instruction. No Customizer, no drag-and-drop — the link appears in the right slot on your live site immediately. Chaining this with wp_list_menu_items first is the standard pattern for AI-driven menu editing with Easy MCP AI.
How do I use wp_create_menu_item with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Add the new 'Pricing' page to the primary navigation menu."
Do I need Easy MCP AI to use wp_create_menu_item?
Yes. wp_create_menu_item is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
MenusCreate a new WordPress navigation menu with a name and slug
Permanently delete a navigation menu and all its items
Delete a single item from a WordPress navigation menu
Fetch a specific navigation menu and all its items by ID
List all items in a specific navigation menu with their order and hierarchy
List all registered WordPress navigation menus with IDs and locations
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_create_menu_item and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.