_sort_nav_menu_items


_sort_nav_menu_items ( $a, $b )

Access:
  • private
Parameters:
  • (object) a The first object to compare
  • (object) b The second object to compare
Returns:
  • (int) -1, 0, or 1 if $a is considered to be respectively less than, equal to, or greater than $b.
Defined at:

Description

Sort menu items by the desired key.

Related Functions

is_nav_menu_item, wp_get_nav_menu_items, wp_save_nav_menu_items, wp_setup_nav_menu_item, _is_valid_nav_menu_item

Top Google Results

User discussions

wpseek mobile