the_comment()WP 2.2.0

Iterate comment index in the comment loop.

No Hooks.

Return

null. Nothing (null).

Usage

the_comment();

Notes

  • Global. WP_Query. $wp_query WordPress Query object.

Changelog

Since 2.2.0 Introduced.

the_comment() code WP 6.4.3

function the_comment() {
	global $wp_query;

	if ( ! isset( $wp_query ) ) {
		return;
	}

	$wp_query->the_comment();
}