bricks_add_menu_item
Add a single item to an existing menu, supporting custom links, pages, posts, categories, and submenus with parent ID.
Instructions
Add a single item to an existing menu. Supports custom links, pages, posts, and categories. Use parent for submenus.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL for custom links | |
| type | No | Link type: custom (default), post_type, taxonomy | custom |
| title | Yes | Menu item display text | |
| object | No | Object type when type=post_type: page, post. When type=taxonomy: category, post_tag | |
| parent | No | Parent menu item ID for creating submenus (0 = top level) | |
| target | No | "_blank" to open in new tab | |
| classes | No | CSS classes for styling | |
| menu_id | Yes | Menu ID to add item to | |
| position | No | Menu order position (1-based) | |
| object_id | No | Post/page/category ID when linking to existing content |