Property | Type | Description | |
---|---|---|---|
$ID | |||
$MenuItemClass | |||
$PostClass | |||
$id | integer | the ID# of the menu, corresponding to the wp_terms table | |
$items | TimberMenuItem[] | null | you need to iterate through | |
$name | string | of the menu (ex: Main Navigation) | |
$term_id | integer | ||
$title | string |
Method | Description | |
---|---|---|
__construct ( integer | string $slug ) | ||
find_parent_item_in_menu ( array $menu_items, integer $parent_id ) : TimberMenuItem | null | ||
get_items ( ) : array |
Method | Description | |
---|---|---|
get_menu_id_from_locations ( string $slug, array $locations ) : integer | ||
get_menu_id_from_terms ( integer $slug ) : integer | ||
init ( integer $menu_id ) | ||
init_as_page_menu ( ) | ||
order_children ( array $items ) : array |
protected order_children ( array $items ) : array | ||
$items | array | |
return | array |
public int $id | ||
return | integer |
public TimberMenuItem[]|null $items | ||
return | TimberMenuItem[] | null |