Create a comment
create_commentPost comments on WordPress content with optional threaded replies. Control moderation status, set author details, and backdate comments.
Instructions
Post a comment on a content item, optionally as a threaded reply. Set status to "approve" to publish it immediately (requires moderation capability); otherwise it enters the normal moderation queue.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO 8601 date to backdate the comment. | |
| post | Yes | Content ID to comment on. Its comment_status must be "open". | |
| author | No | Post as this registered user ID. | |
| parent | No | Comment ID this replies to, for threading. | |
| status | No | Moderation status. Requires moderate_comments to set. | |
| content | Yes | The comment body. Basic HTML is allowed; WordPress sanitises it. | |
| 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. | |
| author_url | No | Commenter website URL. | |
| author_name | No | Display name, when not commenting as a logged-in user. | |
| author_email | No | Email, when not commenting as a logged-in user. |