wp_get_nav_menu_name WordPress Filter Hook
The wp_get_nav_menu_name hook allows you to get the name of a navigation menu. This can be useful if you need to programmatically get the name of a menu for display purposes.
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. |