Bulk moderate comments
moderate_commentsBatch approve, hold, spam, or trash WordPress comments in one request, with per-comment outcome reports to keep moderation queues moving.
Instructions
Approve, hold, spam or trash 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. | |
| 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. |