W3cubDocs

/WordPress

the_comment()

Iterate comment index in the comment loop.

Return

(object)

Source

File: wp-includes/query.php

function the_comment() {
	global $wp_query;
	return $wp_query->the_comment();
}

Changelog

Version Description
2.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/the_comment