wp_update_comment
Updates a WordPress comment by ID—approve, edit, move, or change author/meta—while only modifying the fields you specify.
Instructions
Update a comment (approve, edit content, move, ...); only the given fields change
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>",
"id": "<id>"
},
"name": "wp_update_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Comment ID | |
| date | No | Date in the site timezone (ISO8601) | |
| meta | No | Registered comment meta fields (show_in_rest) as key/value | |
| post | No | Move the comment to this post ID | |
| site | Yes | Site id (see list_sites) | |
| author | No | User ID of the author (instead of author_name/author_email) | |
| parent | No | Parent comment ID (for replies; 0 = top level) | |
| status | No | New status | |
| content | No | Comment content | |
| date_gmt | No | Date in GMT (ISO8601) | |
| author_ip | No | Author IP address (requires moderate_comments) | |
| author_url | No | Author website URL | |
| author_name | No | Author display name | |
| author_email | No | Author email | |
| author_user_agent | No | Author user agent |