apply_filters( 'wp_get_nav_menu_name', string $menu_name, string $location )
Filters the navigation menu name being returned.
Parameters
- $menu_name
-
(string) Menu name.
- $location
-
(string) Menu location identifier.
Source
File: wp-includes/nav-menu.php
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_nav_menu_name