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



nav_menu_submenu_attributes › WordPress Filter Hooks

Since6.3.0
Deprecatedn/a
apply_filters( 'nav_menu_submenu_attributes', $atts, $args, $depth )
Parameters: (3)
  • (array) $atts { The HTML attributes applied to the `<ul>` element, empty strings are ignored. @type string $class HTML CSS class attribute. }
    Required: Yes
  • (stdClass) $args An object of `wp_nav_menu()` arguments.
    Required: Yes
  • (int) $depth Depth of menu item. Used for padding.
    Required: Yes
Defined at:
Codex:

Filters the HTML attributes applied to a menu list element.





Source

$atts       = apply_filters( 'nav_menu_submenu_attributes', $atts, $args, $depth );