Walker_Comment::end_el

Advertisement

Summery Summery

Ends the element output, if needed.

Syntax Syntax

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

Parameters Parameters

$output

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

$comment

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

$depth

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

$args

(array) (Optional) An array of arguments.

Default value: array()

Source Source

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

	 * @see Walker::end_el()
	 * @see wp_list_comments()
	 *
	 * @param string     $output  Used to append additional content. Passed by reference.
	 * @param WP_Comment $comment The current comment object. Default current comment.
	 * @param int        $depth   Optional. Depth of the current comment. Default 0.
	 * @param array      $args    Optional. An array of arguments. Default empty array.
	 */
	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();

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?