Walker_Comment::end_lvl( string $output, int $depth, array $args = array() )

Ends the list of items after the elements are added.

Description

See also

Parameters

$outputstringrequired
Used to append additional content (passed by reference).
$depthintoptional
Depth of the current comment. Default 0.
$argsarrayoptional
Will only append content if style argument value is 'ol' or 'ul'.

Default:array()

Source

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

Changelog

VersionDescription
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.