List comments
wp_get_commentsList comments with their post, author, content, date and approval status. Filter by post_id, status, search text, user_id or author_email. Returns 10 unless limit is set. With type set to "note", it lists the editor notes on posts, where an approval status of 1 means the note thread is resolved.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by comment type, e.g. "comment", "pingback", or "note" (WP 6.9 editor Notes). Omit to return all types. | |
| limit | No | ||
| paged | No | ||
| offset | No | ||
| search | No | ||
| status | No | ||
| post_id | No | ||
| user_id | No | Filter by the registered user ID of the commenter. | |
| author_email | No | Filter by the commenter email address. |