Walker_Comment::end_el( string $output, WP_Comment $comment, int $depth, array $args = array() )

Ends the element output, if needed.


Description

See also


Parameters

$output

(Required) Used to append additional content. Passed by reference.

$comment

(Required) The current comment object. Default current comment.

$depth

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

$args

(Optional) An array of arguments.

Default value: array()


Source

File: wp-includes/class-walker-comment.php

	public function end_el( &$output, $comment, $depth = 0, $args = array() ) {
		if ( !empty( $args['end-callback'] ) ) {
			ob_start();
			call_user_func( $args['end-callback'], $comment, $args, $depth );
			$output .= ob_get_clean();
			return;
		}
		if ( 'div' == $args['style'] )
			$output .= "</div><!-- #comment-## -->\n";
		else
			$output .= "</li><!-- #comment-## -->\n";
	}

Changelog

Changelog
Version Description
WP-2.7.0 Introduced.