is_nav_menu


is_nav_menu ( $menu )

Parameters:
  • (int|string|WP_Term) menu Menu ID, slug, name, or object of menu to check.
Returns:
  • (bool) Whether the menu exists.
Defined at:

Description

Determines whether the given ID is a navigation menu.Returns true if it is; false otherwise.

Related Functions

has_nav_menu, wp_nav_menu, is_nav_menu_item, register_nav_menu, register_nav_menus

Top Google Results

User discussions

wpseek mobile