API Reference

WordPress / API Reference

wp_add_menu_item

WordPress tool. Add a link, page, post, or custom URL to a menu

This is a write tool: it adds menu item in your WordPress account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Add menu item in my WordPress account for [menu id].

It takes 1 required and 13 optional parameters.

Parameters

ParameterTypeRequiredDescription
menu_idintegerYesMenu Id
typestringNoType
type_labelstringNoType Label
object_idintegerNoObject Id
objectstringNoObject
urlstringNoUrl
titlestringNoTitle
parentintegerNoParent
menu_orderintegerNoMenu Order
attr_titlestringNoAttr Title
descriptionstringNoDescription
classesstringNoClasses
targetstringNoTarget
xfnstringNoXfn

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.