W3cubDocs

/WordPress

apply_filters( 'has_nav_menu', bool $has_nav_menu, string $location )

Filters whether a nav menu is assigned to the specified location.

Parameters

$has_nav_menu

(bool) Whether there is a menu assigned to a location.

$location

(string) Menu location.

Source

File: wp-includes/nav-menu.php

View on Trac

Changelog

Version Description
4.3.0 Introduced.

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