wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



walker_nav_menu_start_el › Filtr WordPress Hooks

Od3.0.0
Przestarzałyn/a
apply_filters( 'walker_nav_menu_start_el', $item_output, $menu_item, $depth, $args )
Parametry: (4)
  • (string) $item_output The menu item's starting HTML output.
    Wymagane: Tak
  • (WP_Post) $menu_item Menu item data object.
    Wymagane: Tak
  • (int) $depth Depth of menu item. Used for padding.
    Wymagane: Tak
  • (stdClass) $args An object of wp_nav_menu() arguments.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters a menu item's starting output.

The menu item's starting output only includes $args->before, the opening <a>, the menu item's title, the closing </a>, and $args->after. Currently, there is no filter for modifying the opening and closing <li> for a menu item.





Źródło

$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $menu_item, $depth, $args );