Uma área de pesquisa sobre o WordPress para devs e autores do tema



has_nav_menu ›

Desde4.3.0
Obsoleton/a
apply_filters( 'has_nav_menu', $has_nav_menu, $location )
Parâmetros: (2)
  • (bool) $has_nav_menu Whether there is a menu assigned to a location.
    Required: Yes
  • (string) $location Menu location.
    Required: Yes
Definido em:
Codex:

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





Fonte

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