Adds a comment on a post (same as REST).
- Ability
clanbite-social/create-comment- Label
- Create social comment
- Category
- Access
- Checked by a permission callback
Input
| Property | Type | Description |
|---|---|---|
post_id required | integer | Social post ID. |
content required | string | Comment HTML. |
parent_id | integer | Optional parent comment ID. |
JSON Schema
{
"type": "object",
"properties": {
"post_id": {
"type": "integer",
"description": "Social post ID."
},
"content": {
"type": "string",
"description": "Comment HTML."
},
"parent_id": {
"type": "integer",
"description": "Optional parent comment ID."
}
},
"required": [
"post_id",
"content"
]
}Output
Formatted comment (same shape as REST).
Type: object
JSON Schema
{
"type": "object",
"description": "Formatted comment (same shape as REST)."
}Defined in inc/Social_Kit_Abilities.php