W3cubDocs

/WordPress

apply_filters( 'nav_menu_item_args', stdClass $args, WP_Post $item, int $depth )

Filters the arguments for a single nav menu item.

Parameters

$args

(stdClass) An object of wp_nav_menu() arguments.

$item

(WP_Post) Menu item data object.

$depth

(int) Depth of menu item. Used for padding.

Source

File: wp-includes/class-walker-nav-menu.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/nav_menu_item_args