wp_get_nav_menu_items WordPress Filter Hook

The wp_get_nav_menu_items hook is used to retrieve the list of menu items for a given menu. This can be used to create a custom navigation menu or to modify an existing one.

apply_filters( 'wp_get_nav_menu_items', array $items, object $menu, array $args ) #

Filters the navigation menu items being returned.


Parameters

$items

(array)An array of menu item post objects.

$menu

(object)The menu object.

$args

(array)An array of arguments used to retrieve menu item objects.


Top ↑

Source

File: wp-includes/nav-menu.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.