• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / walker_nav_menu_start_el – filter

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.

    Parameters

    .
    ( 3.0.0 ) . .
    ( string ) $item_output The menu item’s starting HTML output. . . .
    ( WP_Post ) $item Menu item data object. . . .
    ( int ) $depth Depth of menu item. Used for padding. . . .
    $args
    ( stdClass ) An object of wp_nav_menu() arguments. . . .
    Hook name: walker_nav_menu_start_el
    Hook type: filter
    Plugin ref: WordPress
    Sourcefile:
    File ref: Walker_Nav_Menu::start_el() – Starts the element output.
    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.
  • Parameters:
    Deprecated?: No
    API Letters: E,M,N,S,W

    Invokers

    1 to 1 of 1
    • Walker_Nav_Menu::start_el() – Starts the element output.

    Implementers

      Published: 25th November 2019 | Last updated: 9th December 2020

      Primary Sidebar

      Information

      Hook name: walker_nav_menu_start_el
      Hook type: filter
      Plugin ref: WordPress
      Sourcefile:
      File ref: Walker_Nav_Menu::start_el() – Starts the element output.
      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.
    • Parameters:
      Deprecated?: No
      API Letters: E,M,N,S,W

      Footer

      WP-a2z
      WordPress core a2z
      WordPress core only
      WordPress 5.6.2
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  core.wp-a2z.org
      © Copyright WP-a2z 2014-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites