wp_get_nav_menus WordPress Filter Hook

wp_get_nav_menus is a Wordpress hook that is used to retrieve a list of navigation menus. This hook is typically used in themes to display a list of navigation menus in the header or sidebar.

apply_filters( 'wp_get_nav_menus', WP_Term[] $menus, array $args ) #

Filters the navigation menu objects being returned.


Description

Top ↑

See also


Top ↑

Parameters

$menus

(WP_Term[])An array of menu objects.

$args

(array)An array of arguments used to retrieve menu 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.