W3cubDocs

/WordPress

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

View on Trac

Changelog

Version Description
4.9.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_get_nav_menu_name