wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



nav_menu_submenu_attributes › Les Filtres WordPress

Depuis6.3.0
Dépréciéen/a
apply_filters( 'nav_menu_submenu_attributes', $atts, $args, $depth )
Paramètres: (3)
  • (array) $atts { The HTML attributes applied to the `<ul>` element, empty strings are ignored. @type string $class HTML CSS class attribute. }
    Requis: Oui
  • (stdClass) $args An object of `wp_nav_menu()` arguments.
    Requis: Oui
  • (int) $depth Depth of menu item. Used for padding.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the HTML attributes applied to a menu list element.





Source

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