A WordPress-centric search engine for devs and theme authors



wp_nav_menu_objects ›

Since3.1.0
Deprecatedn/a
apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args )
Parameters: (2)
  • (array) $sorted_menu_items The menu items, sorted by each menu item's menu order.
    Required: Yes
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Required: Yes
Defined at:
Codex:

Filters the sorted list of menu item objects before generating the menu's HTML.





Source

$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );