apply_filters( 'hivepress/v1/menus/{menu_name}/items', $items, $menu ) → {array}
Filters menu items. At the time of this hook the menu context is already available. The dynamic part of the hook refers to the menu name (e.g. user_account
). You can check the available menus in the includes/menus
directory of HivePress.
Parameters:
Name | Type | Description |
---|---|---|
$items |
array | Menu items. |
$menu |
object | Menu object. |
- Source:
Returns:
Menu items.
- Type
- array