Menu Locations

These routes return theme menu locations and the menus assigned to them.

Available routes (endpoints are described below):

/wp/v2/menu-locations
/wp/v2/menu-locations/{location}

Controller classes:

Resource schema

The schema lists fields returned by the resource. Fields depend on the context and user capabilities.

Field Context Description
name view, edit Resource field.
description view, edit Resource field.
menu view, edit Resource field.

/wp/v2/menu-locations

An OPTIONS request returns methods, parameters, and the complete schema for the selected route.

$ curl -X OPTIONS -i https://example.com/wp-json/wp/v2/menu-locations

Get data

Request type

GET /wp/v2/menu-locations

Request parameters

$context(string)
Response context: view, embed, or edit.
$page(integer)
Collection page number.
$per_page(integer)
Number of items per page.

Request example

$ curl https://example.com/wp-json/wp/v2/menu-locations