Core Function
View Source on Trac ↗ is_nav_menu_item()
is_nav_menu_item( mixed $menu_item_id = 0 ) Determines whether the given ID is a nav menu item.
Parameters 0 required
| Name / Type | Description |
|---|---|
| $menu_item_id int | The ID of the potential nav menu item. |
Return Value
(bool)
Whether the given ID is that of a nav menu item.
Function Information
Since Version
3.0.0
Source File
wp-includes/nav-menu.php
Advertisement