A WordPress-centric search engine for devs and theme authors



nav_menu_item_args ›

Since4.4.0
Deprecatedn/a
apply_filters( 'nav_menu_item_args', $args, $item, $depth )
Parameters: (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
Defined at:
Codex:

Filters the arguments for a single nav menu item.





Source

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