Walker::start_lvl()
Starts the list before the elements are added.
The $args parameter holds additional values that may be used with the child class methods. This method is called at the start of the output list.
Method of the class: Walker{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Walker = new Walker(); $Walker->start_lvl( $output, $depth, $args );
- $output(string) (required) (passed by reference — &)
- Used to append additional content (passed by reference).
- $depth(int)
- Depth of the item.
- $args(array)
- An array of additional arguments.
Default: array()
Changelog
Since 2.1.0 | Introduced. |
Walker::start_lvl() Walker::start lvl code WP 6.7.2
public function start_lvl( &$output, $depth = 0, $args = array() ) {}