Walker_Comment::end_lvl() public WP 2.7.0
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(число)
- Depth of the current comment.
- $args(массив)
- Will only append content if style argument value is 'ol' or 'ul'.
По умолчанию: empty array
Заметки
- Смотрите: Walker::end_lvl()
- Global. Число. $comment_depth
Список изменений
С версии 2.7.0 | Введена. |
Код Walker_Comment::end_lvl() Walker Comment::end lvl WP 5.7
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;
}
}