WordPress at a glance
function is not described

Walker_Comment::end_el() public WP 2.7.0

Ends the element output, if needed.

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

No Hooks.

Return

Null. Nothing.

Usage

$Walker_Comment = new Walker_Comment();
$Walker_Comment->end_el( $output, $comment, $depth, $args );
$output(string) (required) (passed by reference — &)
Used to append additional content. Passed by reference.
$comment(WP_Comment) (required)
The current comment object.
Default: current comment
$depth(int)
Depth of the current comment.
Default: 0
$args(array)
An array of arguments.
Default: empty array

Notes

  • See: Walker::end_el()
  • See: wp_list_comments()

Changelog

Since 2.7.0 Introduced.

Code of Walker_Comment::end_el() WP 5.5.1

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