wpseek.com
A WordPress-centric search engine for devs and theme authors



has_nav_menu › WordPress Filter Hooks

Since4.3.0
Deprecatedn/a
apply_filters( 'has_nav_menu', $has_nav_menu, $location )
Parameters: (2)
  • (bool) $has_nav_menu Whether there is a menu assigned to a location.
    Required: Yes
  • (string) $location Menu location.
    Required: Yes
Defined at:
Codex:

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





Source

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