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



wp_nav_menu_objects ›

Since3.1.0
已弃用n/a
apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args )
参数: (2)
  • (array) $sorted_menu_items The menu items, sorted by each menu item's menu order.
    Required: Yes
  • (stdClass) $args An object containing wp_nav_menu() arguments.
    Required: Yes
定义在:
文档:

Filters the sorted list of menu item objects before generating the menu's HTML.





源码

$sorted_menu_items = apply_filters( 'wp_nav_menu_objects', $sorted_menu_items, $args );