Filters the HTML attributes applied to a menu list element.
$attsarray$classstring
$argsstdClass$depthintwp-includes/class-walker-nav-menu.php:110Walker_Nav_Menu::start_lvl() * * @type string $class HTML CSS class attribute. * } * @param stdClass $args An object of `wp_nav_menu()` arguments. * @param int $depth Depth of menu item. Used for padding. */ $atts = apply_filters( 'nav_menu_submenu_attributes', $atts, $args, $depth ); $attributes = $this->build_atts( $atts ); $output .= "{$n}{$indent}<ul{$attributes}>{$n}"; } /**Introduced in 6.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.