wp_moderate_comments
Batch-update WordPress comment statuses by ID to approve, hold, mark as spam, or trash multiple comments at once.
Instructions
Batch moderate comments by status
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"ids": "<ids>",
"status": "<status>"
},
"name": "wp_moderate_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comment IDs | |
| site | Yes | Site id (see list_sites) | |
| status | Yes | New status |