A WordPress-centric search engine for devs and theme authors



wp_get_nav_menus ›

Since3.0.0
Deprecatedn/a
apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu', $args )
Parameters: (2)
  • (array) $menus An array of menu objects.
    Required: Yes
  • (array) $args An array of arguments used to retrieve menu objects.
    Required: Yes
See:
  • get_terms()
Defined at:
Codex:

Filters the navigation menu objects being returned.





Source

return apply_filters( 'wp_get_nav_menus', get_terms( 'nav_menu', $args ), $args );