CreateMenuItemInput
InputInput for the createMenuItem mutation.
Fields
Value for the anchor title attribute.
Additional CSS classes for the anchor.
This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
Description shown alongside the menu item.
Value for the anchor rel attribute (xfn).
Linked post type or taxonomy slug — required when type is post_type, taxonomy, or post_type_archive.
Linked post or term database ID — required when type is post_type or taxonomy.
Position within the menu (1-based). 0 appends to the end.
Database ID or global ID of the parent menu item.
Anchor target: empty string or _blank.
Display label shown in the menu.
Item type: custom, post_type, taxonomy, or post_type_archive. Defaults to custom.
Destination URL — required for type CUSTOM.