apply_filters( 'wp_nav_menu_objects', array $sorted_menu_items, stdClass $args )

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

Parameters

$sorted_menu_items

(array) The menu items, sorted by each menu item's menu order.

$args

(stdClass) An object containing wp_nav_menu() arguments.

Source

File: wp-includes/nav-menu-template.php

View on Trac

Changelog

Version Description
3.1.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_nav_menu_objects