Used By
Used By | Description |
---|---|
wp-includes/class-walker-nav-menu.php: Walker_Nav_Menu::start_el() | Starts the element output. |
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.
(string) The menu item's starting HTML output.
(WP_Post) Menu item data object.
(int) Depth of menu item. Used for padding.
(stdClass) An object of wp_nav_menu() arguments.
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/walker_nav_menu_start_el