get_comments


get_comments ( $args = '' )

Parameters:
  • (string|array) $args Optional. Array or string of arguments. See WP_Comment_Query::__construct() for information on accepted arguments. Default empty.
Returns:
  • (int|array) List of comments or number of found comments if `$count` argument is true.
Defined at:

Description

Retrieve a list of comments.

The comment list can be for the blog as a whole or for an individual post.

Related Functions

get_comment, get_comment_id, edit_comment, get_comments_link, get_comment_class

Top Google Results

User discussions

wpseek mobile