Walker_Nav_Menu_Edit::end_lvl() WordPress Method

The Walker_Nav_Menu_Edit::end_lvl() is a method used in the WordPress nav menu system. This method is called when the end of a level is reached in the nav menu. The method takes two arguments, the first being the walker object and the second being the menu id.

Walker_Nav_Menu_Edit::end_lvl( string $output, int $depth, stdClass $args = null ) #

Ends the list of after the elements are added.


Description

Top ↑

See also


Top ↑

Parameters

$output

(string)(Required)Passed by reference.

$depth

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

$args

(stdClass)(Optional)Not used.

Default value: null


Top ↑

Source

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

	public function end_lvl( &$output, $depth = 0, $args = null ) {}

Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.