wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



walker_nav_menu_start_el › Hooks de Filtros WordPress

Desde3.0.0
Obsoleton/a
› apply_filters( 'walker_nav_menu_start_el', $item_output, $menu_item, $depth, $args )
Parâmetros: (4)
  • () item_output The menu item's starting HTML output.
    Required: Yes
  • () menu_item Menu item data object.
    Required: Yes
  • () depth Depth of menu item. Used for padding.
    Required: Yes
  • () args An object of wp_nav_menu() arguments.
    Required: Yes
Definido em:
Codex:

Filters a menu item's starting output.

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




  • Fonte

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