WordPress at a glance
filter is not described

wp_get_nav_menu_items filter-hook . WP 3.0.0

Filters the navigation menu items being returned.


add_filter( 'wp_get_nav_menu_items', 'filter_function_name_9196', 10, 3 );
function filter_function_name_9196( $items, $menu, $args ){
	// filter...

	return $items;
An array of menu item post objects.
The menu object.
An array of arguments used to retrieve menu item objects.


Since 3.0.0 Introduced.

Where the hook is called

wp-includes/nav-menu.php 783
return apply_filters( 'wp_get_nav_menu_items', $items, $menu, $args );

Where in WP core the hook is used WordPress

wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 454
add_filter( 'wp_get_nav_menu_items', array( $this, 'filter_wp_get_nav_menu_items' ), 10, 3 );
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 458
add_filter( 'wp_get_nav_menu_items', array( __CLASS__, 'sort_wp_get_nav_menu_items' ), 1000, 3 );