WordPress at a glance
функция не описана

Walker_Comment::end_lvl() public WP 2.7.0

Ends the list of items after the elements are added.

It's a method of the class: Walker_Comment{}

Хуков нет.

Возвращает

Null. Ничего.

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

$Walker_Comment = new Walker_Comment();
$Walker_Comment->end_lvl( $output, $depth, $args );
$output(string) (required) (passed by reference — &)
Used to append additional content (passed by reference).
$depth(int)
Depth of the current comment.
Default: 0
$args(array)
Will only append content if style argument value is 'ol' or 'ul'.
Default: empty array

Заметки

  • See: Walker::end_lvl()
  • Global. Int. $comment_depth

Changelog

Since 2.7.0 Introduced.

Код Walker_Comment::end_lvl() WP 5.5.1

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