WordPress开发者和主题制作者的搜索引擎



wp_get_nav_menu_items ›

Since3.0.0
已弃用n/a
apply_filters( 'wp_get_nav_menu_items', $items, $menu, $args )
参数: (3)
  • (array) $items An array of menu item post objects.
    Required: Yes
  • (object) $menu The menu object.
    Required: Yes
  • (array) $args An array of arguments used to retrieve menu item objects.
    Required: Yes
定义在:
文档:

Filters the navigation menu items being returned.





源码

return apply_filters( 'wp_get_nav_menu_items', $items, $menu, $args );