A WordPress-centric search engine for devs and theme authors



have_comments ›

Since2.2.0
Deprecatedn/a
have_comments ( No parameters )
Returns:
  • (bool)
Defined at:
Codex:

Whether there are comments to loop over.



Source

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