Reply to a comment
wp_reply_commentAdd a comment to a post as the connected user: a reply to a comment (parent) or a new top-level comment. Each call adds one, so a repeated call posts it twice. It is saved approved and shows at once wherever the post's comments are public, under the user's display name, with the user's email address stored; WordPress sends none of its new-comment emails. HTML is filtered as in post content. Not checked: whether comments are open, and whether parent exists on that post. Returns {created: true, comment_id}. Needs moderate_comments. Existing comments are approved, held or deleted with wp_moderate_comment and wp_delete_comment. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | Id of the comment this replies to; not checked to exist or to belong to post_id. Default 0: a top-level comment. | |
| content | Yes | Comment text; HTML is filtered to what post content allows. | |
| post_id | Yes | Id of the post the comment belongs to; for a reply, the post of the parent comment. A post that does not exist is refused. |