Bulk moderate comments
moderate_commentsApprove, hold, spam, trash, unspam, or untrash multiple comments in one call. Reports per-comment outcomes so you can clear a WordPress moderation queue.
Instructions
Approve, hold, spam, trash — or unspam/untrash — several comments in one call; the practical way to clear a moderation queue. Reports per-comment outcomes rather than failing the whole batch on one error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comment IDs to act on. | |
| action | Yes | What to do with each. unspam/untrash restore the comment's previous status. | |
| 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. |