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



nav_menu_item_args ›

Since4.4.0
已弃用n/a
apply_filters( 'nav_menu_item_args', $args, $item, $depth )
参数: (3)
  • (stdClass) $args An object of wp_nav_menu() arguments.
    Required: Yes
  • (WP_Post) $item Menu item data object.
    Required: Yes
  • (int) $depth Depth of menu item. Used for padding.
    Required: Yes
定义在:
文档:

Filters the arguments for a single nav menu item.





源码

$args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );