Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#45717 closed feature request (duplicate)

REST API: Navigation Endpoint

Reported by: mcwebdev's profile McWebDev Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Menus Keywords:
Focuses: rest-api Cc:

Description (last modified by SergeyBiryukov)

As a consumer of the WP REST API, I should be able to request the navigation configuration so that I may use the response object to construct navigation menus for custom frontends.

Proposed Endpoints:

GET /navigation Gets all menus.
GET /navigation/{menu_id} Gets a specific menu.

Proposed Response Object:

[
  {
    id: {item id}
    slug: {item slug}
    label: {item label}
  },
  ...
]

Change History (2)

#1 @SergeyBiryukov
5 years ago

  • Component changed from General to Menus
  • Description modified (diff)
  • Focuses rest-api added

#2 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @McWebDev, welcome to WordPress Trac!

Thanks for the ticket, we're already tracking this feature request in #40878.

Note: See TracTickets for help on using tickets.