Menu Tools
wordpress_assign_menu_location
Assign a WordPress menu to a theme menu location.
wordpress_assign_menu_location
Assign a menu to a theme location.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| location | string | Yes | Location slug (e.g., "primary", "footer") |
| menu_id | number | Yes | Menu ID to assign (use 0 to unassign) |
Response
{
"success": true,
"updated": true,
"location": "primary",
"menu_id": 10
}
Example Prompts
- "Assign menu 10 to the primary location"
- "Unassign any menu from the footer location"
Related Tools
Was this page helpful?
Built with Documentation.AI
Last updated Dec 15, 2025
