Summery Summery
Starts the list before the elements are added.
Syntax Syntax
Parameters Parameters
- $output
-
(Required) Used to append additional content (passed by reference).
- $depth
-
(Optional) Depth of the current comment. Default 0.
- $args
-
(Optional) Uses 'style' argument for type of HTML list.
Default value: array()
Source Source
File: wp-includes/class-walker-comment.php
public function start_lvl( &$output, $depth = 0, $args = array() ) { $GLOBALS['comment_depth'] = $depth + 1; switch ( $args['style'] ) { case 'div': break; case 'ol': $output .= '<ol class="children">' . "\n"; break; case 'ul': default: $output .= '<ul class="children">' . "\n"; break; } }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |