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

Whether there is a menu assigned to a location.

$location

Menu location.


Source

File: wp-includes/nav-menu.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.3.0 Introduced.