is_nav_menu_item
is_nav_menu_item ( $menu_item_id = 0 )
Parameters:- (int) menu_item_id The ID of the potential nav menu item.
Returns:- (bool) Whether the given ID is that of a nav menu item.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Determines whether the given ID is a nav menu item.