wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



have_comments › WordPress Function

Od2.2.0
Przestarzałyn/a
have_comments ( Brak parametrów )
Powrót:
  • (bool) True if comments are available, false if no more comments.
Zdefiniowane na:
Codex:

Determines whether current WordPress query has comments to loop over.



Źródło

function have_comments() {
	global $wp_query;

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

	return $wp_query->have_comments();
}