WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about walker_nav_menu_start_el

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-walker-nav-menu.php apply_filters 252 /**
* 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.
    */
  • Hook Parameters

    Parameter 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.