has_nav_menu


has_nav_menu ( $location )

Parameters:
  • (string) $location Menu location identifier.
Returns:
  • (bool) Whether location has a menu.
Defined at:

Description

Determines whether a registered nav menu location has a menu assigned to it.

Related Functions

is_nav_menu, wp_nav_menu, is_nav_menu_item, register_nav_menu, walk_nav_menu_tree

Top Google Results

User discussions

wpseek mobile