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:

Description

Returns a navigation menu object.

Related Functions

wp_update_nav_menu_object, wp_get_nav_menu_name, wp_get_nav_menu_items, wp_get_nav_menus, wp_get_nav_menu_to_edit

Top Google Results

User discussions

wpseek mobile