have_comments() – Whether there are comments to loop over.

You appear to be a bot. Output may be restricted

Description

Determines whether current WordPress query has comments to loop over.

Usage

$bool = have_comments();

Parameters

Returns

bool True if comments are available, false if no more comments.

Source

File name: wordpress/wp-includes/query.php
Lines:

1 to 4 of 4
function have_comments() {
  global $wp_query;
  return $wp_query->have_comments();
}
 

 View on GitHub View on Trac