wp_get_nav_menu_object
wp_get_nav_menu_object ( $menu )
Parameters:- (int|string|WP_Term) menu Menu ID, slug, name, or object.
Returns:- (WP_Term|false) Menu object on success, false if $menu param isn't supplied or term does not exist.
Defined at: - Introduced in WordPress: 3.0.0
- Deprecated in WordPress: —
Description
Returns a navigation menu object.