A WordPress-centric search engine for devs and theme authors



wp_get_nav_menu_object ›

Since4.3.0
Deprecatedn/a
apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu )
Parameters: (2)
  • (WP_Term|false) $menu_obj Term from nav_menu taxonomy, or false if nothing had been found.
    Required: Yes
  • (int|string|WP_Term) $menu The menu ID, slug, name, or object passed to wp_get_nav_menu_object().
    Required: Yes
Defined at:
Codex:

Filters the nav_menu term retrieved for wp_get_nav_menu_object().





Source

return apply_filters( 'wp_get_nav_menu_object', $menu_obj, $menu );