Admin
Menu Builder
Access: Admin panel → Edit Menu (index.php?action=menu_builder).
How it works
The menu builder outputs a JSON structure that themes read to render navigation. Drag items to reorder; nest items to create sub-menus.
Menu data format
[
{ "label": "Home", "url": "/", "children": [] },
{ "label": "Blog", "url": "/blog", "children": [] },
{ "label": "About", "url": "/about", "children": [] },
{
"label": "Work",
"url": "#",
"children": [
{ "label": "Projects", "url": "/projects", "children": [] }
]
}
]
Reading the menu in a theme
$menu = get_menu();
foreach ($menu as $item) {
echo '<a href="#">' . esc($item['label']) . '</a>';
}
For hierarchical rendering with dropdowns, use render_menu() or renderHierarchicalMenu().
