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
See also
Parameters
- $menus
(WP_Term[])An array of menu objects.
- $args
(array)An array of arguments used to retrieve menu objects.
Source
File: wp-includes/nav-menu.php
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |