Walker_Comment::end_lvl()
Ends the list of items after the elements are added.
Метод класса: Walker_Comment{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Walker_Comment = new Walker_Comment(); $Walker_Comment->end_lvl( $output, $depth, $args );
- $output(строка) (обязательный) (передается по ссылке — &)
- Used to append additional content (passed by reference).
- $depth(int)
- Depth of the current comment.
- $args(массив)
- Will only append content if style argument value is 'ol' or 'ul'.
По умолчанию: empty array
Заметки
- Смотрите: Walker::end_lvl()
- Global. int. $comment_depth
Список изменений
С версии 2.7.0 | Введена. |
Код Walker_Comment::end_lvl() Walker Comment::end lvl WP 6.5.2
public function end_lvl( &$output, $depth = 0, $args = array() ) { $GLOBALS['comment_depth'] = $depth + 1; switch ( $args['style'] ) { case 'div': break; case 'ol': $output .= "</ol><!-- .children -->\n"; break; case 'ul': default: $output .= "</ul><!-- .children -->\n"; break; } }