Walker_Comment::start_lvl
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
Заметки
- Смотрите: Walker::start_lvl()
- Global. int.
$comment_depth
Список изменений
| С версии 2.7.0 | Введена. |
Код Walker_Comment::start_lvl() Walker Comment::start lvl WP 6.9.4
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;
}
}