Menu Toolswordpress_assign_menu_location
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

ParameterTypeRequiredDescription
locationstringYesLocation slug (e.g., "primary", "footer")
menu_idnumberYesMenu 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"
Was this page helpful?
Built with Documentation.AI

Last updated Dec 15, 2025