wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



nav_menu_item_attributes › WordPress Filter Hooks

Da6.3.0
Deprecaton/a
› apply_filters( 'nav_menu_item_attributes', $li_atts, $menu_item, $args, $depth )
Parametri: (4)
  • () li_atts { The HTML attributes applied to the menu item's `<li>` element, empty strings are ignored. @type string $class HTML CSS class attribute. @type string $id HTML id attribute. }
    Richiesto: Sì
  • () menu_item The current menu item object.
    Richiesto: Sì
  • () args An object of wp_nav_menu() arguments.
    Richiesto: Sì
  • () depth Depth of menu item. Used for padding.
    Richiesto: Sì
Definito a:
Codex:

Filters the HTML attributes applied to a menu's list item element.





Sorgenti

$li_atts       = apply_filters( 'nav_menu_item_attributes', $li_atts, $menu_item, $args, $depth );