WordPress at a glance
function is not described

WP_Query::the_comment() WP 2.2.0

Sets up the current comment.

This is a method of the class: WP_Query

Hooks from the method
Return

Null. Nothing.

Usage

$WP_Query = new WP_Query();
$var = $WP_Query->the_comment();

Notes

  • Global. WP_Comment. $comment Current comment.

Changelog

Since 2.2.0 Introduced.

Code of WP Query::the comment: wp-includes/class-wp-query.php WP 5.2.2

<?php
public function the_comment() {
	global $comment;

	$comment = $this->next_comment();

	if ( $this->current_comment == 0 ) {
		/**
		 * Fires once the comment loop is started.
		 *
		 * @since 2.2.0
		 */
		do_action( 'comment_loop_start' );
	}
}