Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_nav_menu_objects ›

Desde3.1.0
Obsoleton/a
apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args )
Parâmetros: (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
Definido em:
Codex:

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





Fonte

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