apply_filters( ‘has_nav_menu’, bool $has_nav_menu, string $location )

In this article

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

Parameters

$has_nav_menubool
Whether there is a menu assigned to a location.
$locationstring
Menu location.

Source

return apply_filters( 'has_nav_menu', $has_nav_menu, $location );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.