Walker_Comment::start_lvl()publicWP 2.7.0

Starts the list before the elements are added.

Метод класса: Walker_Comment{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Walker_Comment = new Walker_Comment();
$Walker_Comment->start_lvl( $output, $depth, $args );
$output(строка) (обязательный) (передается по ссылке — &)
Used to append additional content (passed by reference).
$depth(int)
Depth of the current comment.
$args(массив)
Uses 'style' argument for type of HTML list.
По умолчанию: empty array

Заметки

Список изменений

С версии 2.7.0 Введена.

Код Walker_Comment::start_lvl() WP 6.5.2

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;
	}
}