List comments
list_commentsRetrieve comments from WordPress with filters for post, status, author, and date. Use status 'hold' to view pending moderation or 'spam' for caught spam.
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. | |
| type | No | Comment type: "comment" (the default WordPress applies), "pingback", "trackback", or a custom type such as "review". | |
| after | No | ISO 8601 date. | |
| order | No | Sort direction. | desc |
| before | No | ISO 8601 date. | |
| parent | No | Only replies to this comment ID (0 for top-level comments). | |
| 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. |