List comments
list_commentsFilter and paginate WordPress comments by post, status, author, or date to review pending, spam, or approved comments.
Instructions
List comments with filtering by post, status, author and date. Moderating? Filter status: "hold" for the pending queue or "spam" for what the spam filter caught — both require authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of results to return. | |
| post | No | Only comments on this content ID. | |
| after | No | ISO 8601 date. | |
| order | No | Sort direction. | desc |
| before | No | ISO 8601 date. | |
| parent | No | Only replies to this comment ID. | |
| search | No | Free-text search term. | |
| status | No | Moderation status. Anything other than "approve" requires authentication. | |
| orderby | No | Which field to sort by. | date |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| per_page | No | How many results per page. | |
| author_email | No | Filter by commenter email. Administrator only. |