WordPress at Your Fingertips
filter is not described

has_nav_menu filter-hook . WP 4.3.0

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

Usage

add_filter( 'has_nav_menu', 'filter_function_name_1571', 10, 2 );
function filter_function_name_1571( $has_nav_menu, $location ){
	// filter...

	return $has_nav_menu;
}
$has_nav_menu(true|false)
Whether there is a menu assigned to a location.
$location(string)
Menu location.

Changelog

Since 4.3.0 Introduced.

Where the hook is called

has_nav_menu()
has_nav_menu
wp-includes/nav-menu.php 195
return apply_filters( 'has_nav_menu', $has_nav_menu, $location );

Where in WP core the hook is used WordPress

Usage not found.