Walker_Nav_Menu::start_el

SummerySummery

Starts the element output.

Syntax

Walker_Nav_Menu::start_el( string $output, WP_Post $item, int $depth, stdClass $args = null, int $id )

ParametersParameters

$output

(string) (Required) Used to append additional content (passed by reference).

$item

(WP_Post) (Required) Menu item data object.

$depth

(int) (Required) Depth of menu item. Used for padding.

$args

(stdClass) (Optional) An object of wp_nav_menu() arguments.

Default value: null

$id

(int) (Required) Current item ID.

SourceSource

File: wp-includes/class-walker-nav-menu.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 The 'nav_menu_item_args' filter was added.
3.0.0 Introduced.

See alsoSee also

Scroll to Top