Clanbite Forums Abilities

Toggles a reaction on a topic’s opening post (same as REST).

Ability
clanbite-forums/toggle-topic-reaction
Label
Toggle forum topic reaction
Category
Access
Checked by a permission callback

Input

PropertyTypeDescription
topic_id requiredintegerTopic ID.
reaction_typestringReaction slug (default like).
JSON Schema
{
    "type": "object",
    "properties": {
        "topic_id": {
            "type": "integer",
            "description": "Topic ID."
        },
        "reaction_type": {
            "type": "string",
            "description": "Reaction slug (default like)."
        }
    },
    "required": [
        "topic_id"
    ]
}

Output

Reaction toggle result (same shape as REST).

Type: object

JSON Schema
{
    "type": "object",
    "description": "Reaction toggle result (same shape as REST)."
}

Defined in inc/Forums/Forum_Abilities.php