Walker_Nav_Menu_Edit::start_lvl() WordPress Method
This method is called when the start of a new sub-menu level is detected. It includes the opening
- tag and all of the initial sub-menu items. This method is important because it allows for the proper nesting of sub-menu items.
- $output
(string)(Required)Passed by reference.
- $depth
(int)(Required)Depth of menu item. Used for padding.
- $args
(stdClass)(Optional)Not used.
Default value: null
Walker_Nav_Menu_Edit::start_lvl( string $output, int $depth, stdClass $args = null ) #
Starts the list before the elements are added.
Description
See also
Parameters
Source
File: wp-admin/includes/class-walker-nav-menu-edit.php
public function start_lvl( &$output, $depth = 0, $args = null ) {}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |