_wp_sort_menu_items_by_parent_id


_wp_sort_menu_items_by_parent_id ( $menu_items )

Access:
  • private
Parameters:
  • (array) menu_items Menu items to sort.
Returns:
  • (array) An array keyed by the id of the parent menu where each element is an array of menu items that belong to that parent.
Defined at:

Description

Sorts a standard array of menu items into a nested structure keyed by the id of the parent menu.

Related Functions

_wp_get_menu_items_at_location, wp_get_term_taxonomy_parent_id, _usort_terms_by_id, _wp_menu_item_classes_by_context, _sort_nav_menu_items

Top Google Results

User discussions

wpseek mobile