Filter hook 'walker_nav_menu_start_el'

in WP Core File wp-includes/class-walker-nav-menu.php at line 293

Description

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.

    Occurrences

    Filename Line Number
    wp-includes/class-walker-nav-menu.php 293

    Parameters

    Type Name Description
    string $item_output The menu item's starting HTML output.
    WP_Post $menu_item Menu item data object.
    int $depth Depth of menu item. Used for padding.
    stdClass $args An object of wp_nav_menu() arguments.

    PHP Doc

    /**
    		 * 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. * * @since 3.0.0 * * @param string $item_output The menu item's starting HTML output. * @param WP_Post $menu_item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. */