WPDev.one
Core Function
View Source on Trac ↗

is_nav_menu()

is_nav_menu( mixed $menu )

Determines whether the given ID is a navigation menu.

Parameters 1 required

Name / Type Description
(int

| string | WP_Term) $menu Menu ID, slug, name, or object of menu to check.

Required

Return Value

(bool)
Whether the menu exists.

Function Information

Since Version
3.0.0
Source File
wp-includes/nav-menu.php
Advertisement