wpseek.com
A WordPress-centric search engine for devs and theme authors



nav_menu_item_args › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'nav_menu_item_args', $args, $menu_item, $depth )
Parameters: (3)
  • (stdClass) $args An object of wp_nav_menu() arguments.
    Required: Yes
  • (WP_Post) $menu_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, $menu_item, $depth );