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 string.
Returns:
  • (WP_Comment[]|int[]|int) List of comments or number of found comments if `$count` argument is true.
Defined at:

Description

Retrieves 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_comment_class, get_comments_link

Top Google Results

User discussions

wpseek mobile