Description
Filters the HTML attributes applied to a menu's list item element. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/class-walker-nav-menu.php | 210 |
Parameters
Type | Name | Description |
---|---|---|
array | $li_atts | { The HTML attributes applied to the menu item's ` |
WP_Post | $menu_item | The current menu item object. |
stdClass | $args | An object of wp_nav_menu() arguments. |
int | $depth | Depth of menu item. Used for padding. |
PHP Doc
/**
* Filters the HTML attributes applied to a menu's list item element.
*
* @since 6.3.0
*
* @param array $li_atts {
* The HTML attributes applied to the menu item's `` element, empty strings are ignored.
*
* @type string $class HTML CSS class attribute.
* @type string $id HTML id attribute.
* }
* @param WP_Post $menu_item The current menu item object.
* @param stdClass $args An object of wp_nav_menu() arguments.
* @param int $depth Depth of menu item. Used for padding.
*/