Clanbite Forums Abilities

Adds a reply to a topic (same rules as REST).

Ability
clanbite-forums/create-reply
Label
Create forum reply
Category
Access
Checked by a permission callback

Input

PropertyTypeDescription
topic_id requiredintegerTopic ID.
content requiredstringReply HTML content.
parent_idintegerOptional parent reply ID for threading.
JSON Schema
{
    "type": "object",
    "properties": {
        "topic_id": {
            "type": "integer",
            "description": "Topic ID."
        },
        "content": {
            "type": "string",
            "description": "Reply HTML content."
        },
        "parent_id": {
            "type": "integer",
            "description": "Optional parent reply ID for threading."
        }
    },
    "required": [
        "topic_id",
        "content"
    ]
}

Output

Serialized reply (same shape as REST).

Type: object

JSON Schema
{
    "type": "object",
    "description": "Serialized reply (same shape as REST)."
}

Defined in inc/Forums/Forum_Abilities.php