Walker_Comment::end_lvl

Advertisement

Summery Summery

Ends the list of items after the elements are added.

Syntax Syntax

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

Parameters Parameters

$output

(string) (Required) Used to append additional content (passed by reference).

$depth

(int) (Optional) Depth of the current comment. Default 0.

$args

(array) (Optional) Will only append content if style argument value is 'ol' or 'ul'.

Default value: array()

Source Source

File: wp-includes/class-walker-comment.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;
		}
	}

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?