wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



have_comments › WordPress Function

Da2.2.0
Deprecaton/a
have_comments ( Nessun parametro )
Ritorna:
  • (bool) True if comments are available, false if no more comments.
Definito a:
Codex:

Determines whether current WordPress query has comments to loop over.



Sorgenti

function have_comments() {
	global $wp_query;

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

	return $wp_query->have_comments();
}