Clanbite Social Kit Abilities

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

PropertyTypeDescription
post_id requiredintegerSocial post ID.
content requiredstringComment HTML.
parent_idintegerOptional 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